From 0524fc8ab20f6d2dbd1d552092053a4ba9323fac Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 12 Aug 2015 23:44:52 +0200 Subject: /list uses the whole JID, not just the server part of the given JID --- src/core/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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) -- cgit v1.2.3