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