summaryrefslogtreecommitdiff
path: root/plugins/figlet.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-09 14:02:17 +0100
committermathieui <mathieui@mathieui.net>2011-11-09 14:02:17 +0100
commit98b9506983b57d7da1f5543f8cefd68dca0827ae (patch)
tree790c3977931a8a1075ec26058f44d4ca42e0500f /plugins/figlet.py
parent04c283c55188bda7d0cdd87c345cbe5603552f09 (diff)
downloadpoezio-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/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)