list command: default to domain jid if no argument specified

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-04-08 23:16:46 +01:00
parent b5e8933ea0
commit e61b7742bb
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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