summaryrefslogtreecommitdiff
path: root/plugins/revstr.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/revstr.py')
-rw-r--r--plugins/revstr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/revstr.py b/plugins/revstr.py
index d66e6411..98a6ea1a 100644
--- a/plugins/revstr.py
+++ b/plugins/revstr.py
@@ -2,7 +2,7 @@ from plugin import BasePlugin
class Plugin(BasePlugin):
def init(self):
- self.add_event_handler('muc_say', self.revstr)
+ self.api.add_event_handler('muc_say', self.revstr)
def revstr(self, msg, tab):
msg['body'] = msg['body'][::-1]