summaryrefslogtreecommitdiff
path: root/src/core/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commands.py')
-rw-r--r--src/core/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index 39bf505d..dcbd762f 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -698,10 +698,10 @@ def command_invite(self, arg):
args = common.shell_split(arg)
if len(args) < 2:
return
- reason = args[2] if len(args) > 2 else ''
+ reason = args[2] if len(args) > 2 else None
to = safeJID(args[0])
- room = safeJID(args[1])
- self.xmpp.plugin['xep_0045'].invite(room, str(to), reason)
+ room = safeJID(args[1]).bare
+ self.invite(to.full, room, reason=reason)
def command_decline(self, arg):
"""/decline <room@server.tld> [reason]"""