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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/time_marker.py b/plugins/time_marker.py
index 02917533..2801ff47 100644
--- a/plugins/time_marker.py
+++ b/plugins/time_marker.py
@@ -16,7 +16,7 @@ from datetime import datetime, timedelta
class Plugin(BasePlugin):
def init(self):
- self.add_event_handler("muc_msg", self.on_muc_msg)
+ self.api.add_event_handler("muc_msg", self.on_muc_msg)
# Dict of MucTab.name: last_message date, so we don’t have to
# retrieve the messages of the given muc to look for the last
# message’s date each time. Also, now that I think about it, the