summaryrefslogtreecommitdiff
path: root/plugins
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 /plugins
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 'plugins')
-rw-r--r--plugins/gpg/__init__.py2
-rw-r--r--plugins/ping.py4
-rw-r--r--plugins/time_marker.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/gpg/__init__.py b/plugins/gpg/__init__.py
index 156f38b2..67720a5e 100644
--- a/plugins/gpg/__init__.py
+++ b/plugins/gpg/__init__.py
@@ -291,7 +291,7 @@ class Plugin(BasePlugin):
jid = JID(args[1])
else:
if isinstance(self.core.current_tab(), ConversationTab):
- jid = JID(self.core.current_tab().get_name())
+ jid = JID(self.core.current_tab().name)
else:
return
command = args[0]
diff --git a/plugins/ping.py b/plugins/ping.py
index 152445c8..4ec706b3 100644
--- a/plugins/ping.py
+++ b/plugins/ping.py
@@ -73,14 +73,14 @@ class Plugin(BasePlugin):
def command_private_ping(self, arg):
if arg:
return self.command_ping(arg)
- self.command_ping(self.api.current_tab().get_name())
+ self.command_ping(self.api.current_tab().name)
def command_muc_ping(self, arg):
if not arg.strip():
return
user = self.api.current_tab().get_user_by_name(arg)
if user:
- jid = safeJID(self.api.current_tab().get_name())
+ jid = safeJID(self.api.current_tab().name)
jid.resource = user.nick
else:
jid = safeJID(arg)
diff --git a/plugins/time_marker.py b/plugins/time_marker.py
index 8fc1c08b..9ef27ee6 100644
--- a/plugins/time_marker.py
+++ b/plugins/time_marker.py
@@ -65,8 +65,8 @@ class Plugin(BasePlugin):
res += "%s seconds, " % seconds
return res[:-2]
- last_message_date = self.last_messages.get(tab.get_name())
- self.last_messages[tab.get_name()] = datetime.now()
+ last_message_date = self.last_messages.get(tab.name)
+ self.last_messages[tab.name] = datetime.now()
if last_message_date:
delta = datetime.now() - last_message_date
if delta >= timedelta(0, self.config.get('delay', 900)):