From 900b67c01d86a44b75dbcde41ce82ecf46d82001 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 31 May 2014 17:29:29 +0200 Subject: 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. --- src/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/core.py') 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) -- cgit v1.2.3