summaryrefslogtreecommitdiff
path: root/src/core/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-31 17:29:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-31 17:37:15 +0200
commit900b67c01d86a44b75dbcde41ce82ecf46d82001 (patch)
tree67bd3325f91a5158e077401c6dd23eecb90e00ce /src/core/core.py
parent06fdc82f60a35ec3e2be34e1ace7431643a61499 (diff)
downloadpoezio-900b67c01d86a44b75dbcde41ce82ecf46d82001.tar.gz
poezio-900b67c01d86a44b75dbcde41ce82ecf46d82001.tar.bz2
poezio-900b67c01d86a44b75dbcde41ce82ecf46d82001.tar.xz
poezio-900b67c01d86a44b75dbcde41ce82ecf46d82001.zip
get_tab_by_name() should specify a tab type whenever possible
For example, a tab can be named muc.example.com, if you do /list muc.example.com. If you then do /join muc.example.com, the error handler needs to get the correct tab (the MucTab, not the MucListTab previously opened). This commit fixes the above issue (a traceback), and maybe some others like that.
Diffstat (limited to 'src/core/core.py')
-rw-r--r--src/core/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 2e7a3c64..75f914f8 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -1219,7 +1219,7 @@ class Core(object):
tab.activate(reason=reason)
def on_user_changed_status_in_private(self, jid, msg):
- tab = self.get_tab_by_name(jid)
+ tab = self.get_tab_by_name(jid, tabs.ChatTab)
if tab: # display the message in private
tab.add_message(msg, typ=2)