summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-04-08 23:16:46 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-04-08 23:16:46 +0100
commite61b7742bb576533ee295c4df939a035d3a73a7d (patch)
tree2c90b78c6202fd20b41369ff3ec7c967d2b60aa0
parentb5e8933ea03e129d46a73ccb2d3d3b358a0954d1 (diff)
downloadpoezio-e61b7742bb576533ee295c4df939a035d3a73a7d.tar.gz
poezio-e61b7742bb576533ee295c4df939a035d3a73a7d.tar.bz2
poezio-e61b7742bb576533ee295c4df939a035d3a73a7d.tar.xz
poezio-e61b7742bb576533ee295c4df939a035d3a73a7d.zip
list command: default to domain jid if no argument specified
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/commands.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 792474a6..e3c3998f 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -280,6 +280,7 @@ class CommandCore:
jid = self.core.tabs.current_tab.jid
if jid is None or not jid.domain:
return None
+ jid = JID(jid.domain)
list_tab = tabs.MucListTab(self.core, jid)
self.core.add_tab(list_tab, True)
cb = list_tab.on_muc_list_item_received