diff options
Diffstat (limited to 'plugins/figlet.py')
-rw-r--r-- | plugins/figlet.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/figlet.py b/plugins/figlet.py index 0fda098e..eaf8dab3 100644 --- a/plugins/figlet.py +++ b/plugins/figlet.py @@ -3,9 +3,9 @@ import subprocess class Plugin(BasePlugin): def init(self): - self.add_event_handler('muc_say', self.figletize) - self.add_event_handler('conversation_say', self.figletize) - self.add_event_handler('private_say', self.figletize) + self.api.add_event_handler('muc_say', self.figletize) + self.api.add_event_handler('conversation_say', self.figletize) + self.api.add_event_handler('private_say', self.figletize) def figletize(self, msg, tab): process = subprocess.Popen(['figlet', '--', msg['body']], stdout=subprocess.PIPE) |