summaryrefslogtreecommitdiff
path: root/plugins/rainbow.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rainbow.py')
-rw-r--r--plugins/rainbow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/rainbow.py b/plugins/rainbow.py
index 0f242027..3c4813d0 100644
--- a/plugins/rainbow.py
+++ b/plugins/rainbow.py
@@ -12,9 +12,9 @@ def rand_color():
class Plugin(BasePlugin):
def init(self):
- self.add_poezio_event_handler('muc_say', self.rainbowize)
- self.add_poezio_event_handler('private_say', self.rainbowize)
- self.add_poezio_event_handler('conversation_say', self.rainbowize)
+ self.add_event_handler('muc_say', self.rainbowize)
+ self.add_event_handler('private_say', self.rainbowize)
+ self.add_event_handler('conversation_say', self.rainbowize)
- def rainbowize(self, msg):
+ def rainbowize(self, msg, tab):
msg['body'] = ''.join(['%s%s' % (rand_color(),char,) for char in xhtml.clean_text(msg['body'])])