summaryrefslogtreecommitdiff
path: root/plugins/time_marker.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/time_marker.py')
-rw-r--r--plugins/time_marker.py4
1 files changed, 2 insertions, 2 deletions
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)):