diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-08-12 23:44:52 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-08-12 23:44:52 +0200 |
commit | 0524fc8ab20f6d2dbd1d552092053a4ba9323fac (patch) | |
tree | f832b6cc35f27d8b2129886c2e666870c20a1159 /src/core | |
parent | 4c63b264a44b0e58773ef1e6eb6e400517e492da (diff) | |
download | poezio-0524fc8ab20f6d2dbd1d552092053a4ba9323fac.tar.gz poezio-0524fc8ab20f6d2dbd1d552092053a4ba9323fac.tar.bz2 poezio-0524fc8ab20f6d2dbd1d552092053a4ba9323fac.tar.xz poezio-0524fc8ab20f6d2dbd1d552092053a4ba9323fac.zip |
/list <jid> uses the whole JID, not just the server part of the given JID
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/commands.py b/src/core/commands.py index 341e0abb..f278e233 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -266,15 +266,15 @@ def command_list(self, args): if args is None: return self.command_help('list') elif args: - server = safeJID(args[0]).server + jid = safeJID(args[0]) else: if not isinstance(self.current_tab(), tabs.MucTab): return self.information('Please provide a server', 'Error') - server = safeJID(self.current_tab().name).server - list_tab = tabs.MucListTab(server) + jid = safeJID(self.current_tab().name).server + list_tab = tabs.MucListTab(jid) self.add_tab(list_tab, True) cb = list_tab.on_muc_list_item_received - self.xmpp.plugin['xep_0030'].get_items(jid=server, + self.xmpp.plugin['xep_0030'].get_items(jid=jid, callback=cb) @command_args_parser.quoted(1) |