summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/commands.py8
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)