diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-09 14:02:17 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-09 14:02:17 +0100 |
commit | 98b9506983b57d7da1f5543f8cefd68dca0827ae (patch) | |
tree | 790c3977931a8a1075ec26058f44d4ca42e0500f /plugins/rainbow.py | |
parent | 04c283c55188bda7d0cdd87c345cbe5603552f09 (diff) | |
download | poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.gz poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.bz2 poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.tar.xz poezio-98b9506983b57d7da1f5543f8cefd68dca0827ae.zip |
Remove poezio_event_handler to keep only event_handler
Diffstat (limited to 'plugins/rainbow.py')
-rw-r--r-- | plugins/rainbow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/rainbow.py b/plugins/rainbow.py index 0f242027..8a73da03 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): msg['body'] = ''.join(['%s%s' % (rand_color(),char,) for char in xhtml.clean_text(msg['body'])]) |