From 89a9b33e52a515cbaa9bd766133883540d163e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 27 Apr 2019 23:52:36 +0100 Subject: Replace tab.name with tab.jid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/core/handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'poezio/core/handlers.py') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 030a43e5..b79a853b 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -235,7 +235,7 @@ class HandlerCore: # Differentiate both type of messages, and call the appropriate handler. jid_from = message['from'] for tab in self.core.get_tabs(tabs.MucTab): - if tab.name == jid_from.bare: + if tab.jid.bare == jid_from.bare: if jid_from.resource: self.on_groupchat_private_message(message, sent=False) return @@ -247,7 +247,7 @@ class HandlerCore: """ jid_from = message['from'] for tab in self.core.get_tabs(tabs.MucTab): - if tab.name == jid_from.bare: + if tab.jid.bare == jid_from.bare: if jid_from.full == jid_from.bare: self.core.room_error(message, jid_from.bare) else: @@ -1396,12 +1396,12 @@ class HandlerCore: jid_from = message['from'] self.core.information('%s requests your attention!' % jid_from, 'Info') for tab in self.core.tabs: - if tab.name == jid_from: + if tab.jid == jid_from: tab.state = 'attention' self.core.refresh_tab_win() return for tab in self.core.tabs: - if tab.name == jid_from.bare: + if tab.jid.bare == jid_from.bare: tab.state = 'attention' self.core.refresh_tab_win() return -- cgit v1.2.3