summaryrefslogtreecommitdiff
path: root/src/core/handlers.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-30 21:34:09 +0200
committermathieui <mathieui@mathieui.net>2014-04-30 21:34:09 +0200
commitbbdc14aaa5a47e77ad46d1ad7b4465ac065d6677 (patch)
tree190e961ea1c516ad0127e1c82cddb5fee263e565 /src/core/handlers.py
parentd859ec2ea19654603075b556094c6b59aad8e73a (diff)
downloadpoezio-bbdc14aaa5a47e77ad46d1ad7b4465ac065d6677.tar.gz
poezio-bbdc14aaa5a47e77ad46d1ad7b4465ac065d6677.tar.bz2
poezio-bbdc14aaa5a47e77ad46d1ad7b4465ac065d6677.tar.xz
poezio-bbdc14aaa5a47e77ad46d1ad7b4465ac065d6677.zip
Remove Tab.get_name() and use Tab.name instead
(keep a get_name() fallback just in case for now)
Diffstat (limited to 'src/core/handlers.py')
-rw-r--r--src/core/handlers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index ad696eb1..45a4ff2a 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -161,7 +161,7 @@ def on_message(self, message):
# Differentiate both type of messages, and call the appropriate handler.
jid_from = message['from']
for tab in self.get_tabs(tabs.MucTab):
- if tab.get_name() == jid_from.bare:
+ if tab.name == jid_from.bare:
if message['type'] == 'error':
return self.room_error(message, jid_from)
else:
@@ -1003,12 +1003,12 @@ def on_attention(self, message):
jid_from = message['from']
self.information('%s requests your attention!' % jid_from, 'Info')
for tab in self.tabs:
- if tab.get_name() == jid_from:
+ if tab.name == jid_from:
tab.state = 'attention'
self.refresh_tab_win()
return
for tab in self.tabs:
- if tab.get_name() == jid_from.bare:
+ if tab.name == jid_from.bare:
tab.state = 'attention'
self.refresh_tab_win()
return