summaryrefslogtreecommitdiff
path: root/plugins/figlet.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/figlet.py')
-rw-r--r--plugins/figlet.py6
1 files changed, 3 insertions, 3 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)