From 3077ec2bc1bddcdcc36f03cca4244dbb0faff90a Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 6 Jun 2015 16:49:39 +0200 Subject: Fix /list when no server is provided (thanks eijebong) --- src/core/commands.py | 2 +- src/tabs/muclisttab.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/commands.py b/src/core/commands.py index 974c706f..2f5147c0 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -266,7 +266,7 @@ def command_list(self, args): if args is None: return self.command_help('list') elif args: - server = safeJID(args[0]) + server = safeJID(args[0]).server else: if not isinstance(self.current_tab(), tabs.MucTab): return self.information('Please provide a server', 'Error') diff --git a/src/tabs/muclisttab.py b/src/tabs/muclisttab.py index c26fb268..92d55190 100644 --- a/src/tabs/muclisttab.py +++ b/src/tabs/muclisttab.py @@ -20,7 +20,7 @@ class MucListTab(ListTab): plugin_keys = {} def __init__(self, server): - ListTab.__init__(self, server.full, + ListTab.__init__(self, server, "ā€œjā€: join room.", 'Chatroom list on server %s (Loading)' % server, (('node-part', 0), ('name', 2), ('users', 3))) -- cgit v1.2.3