summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-22 16:17:28 +0200
committermathieui <mathieui@mathieui.net>2018-07-22 16:17:28 +0200
commite9585c7ea1a07c984697dc5d45c99bb87b0560b5 (patch)
tree72bb6d9942925a3adac938485699394c92623b7e
parentc6cf2d08b7295a477d89d01535463d18103f6311 (diff)
downloadpoezio-e9585c7ea1a07c984697dc5d45c99bb87b0560b5.tar.gz
poezio-e9585c7ea1a07c984697dc5d45c99bb87b0560b5.tar.bz2
poezio-e9585c7ea1a07c984697dc5d45c99bb87b0560b5.tar.xz
poezio-e9585c7ea1a07c984697dc5d45c99bb87b0560b5.zip
Fix /message
-rw-r--r--poezio/core/commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index df06c41f..a3466216 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -162,7 +162,7 @@ class CommandCore:
log.debug(
'Could not send directed presence to %s', jid, exc_info=True)
return
- tab = self.core.tabs.by_name_and_class(jid)
+ tab = self.core.tabs.by_name(jid)
if tab:
if ptype in ('xa', 'away'):
tab.directed_presence = False
@@ -939,13 +939,13 @@ class CommandCore:
return self.core.information('Invalid JID.', 'Error')
tab = self.core.get_conversation_by_jid(
jid.full, False, fallback_barejid=False)
- muc = self.core.tabs.by_name_and_class(jid.bare, typ=tabs.MucTab)
+ muc = self.core.tabs.by_name_and_class(jid.bare, tabs.MucTab)
if not tab and not muc:
tab = self.core.open_conversation_window(jid.full, focus=True)
elif muc:
if jid.resource:
- tab = self.core.tabs.by_name_and_class(
- jid.full, typ=tabs.PrivateTab)
+ tab = self.core.tabs.by_name_and_class(jid.full,
+ tabs.PrivateTab)
if tab:
self.core.focus_tab(tab)
else: