summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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)):