diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/figlet.py | 6 | ||||
-rw-r--r-- | plugins/rainbow.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/figlet.py b/plugins/figlet.py index cf885352..52bbc67a 100644 --- a/plugins/figlet.py +++ b/plugins/figlet.py @@ -3,9 +3,9 @@ import subprocess class Plugin(BasePlugin): def init(self): - self.add_poezio_event_handler('muc_say', self.figletize) - self.add_poezio_event_handler('conversation_say', self.figletize) - self.add_poezio_event_handler('private_say', self.figletize) + self.add_event_handler('muc_say', self.figletize) + self.add_event_handler('conversation_say', self.figletize) + self.add_event_handler('private_say', self.figletize) def figletize(self, msg): process = subprocess.Popen(['figlet', msg['body']], stdout=subprocess.PIPE) 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'])]) |