changeset 2097:9cebfffe27af

Don't forget to pass the value returned by event handlers back to the caller.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 05 Jun 2007 22:27:29 +0200
parents b37dd51e566e
children da36e7cc80a3
files MoinMoin/events/JabberNotification.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/JabberNotification.py	Tue Jun 05 21:00:28 2007 +0200
+++ b/MoinMoin/events/JabberNotification.py	Tue Jun 05 22:27:29 2007 +0200
@@ -31,11 +31,11 @@
         server = xmlrpclib.Server("http://" + cfg.bot_host)
     
     if isinstance(event, PageEvent):
-        handle_page_changed(event)
+        return handle_page_changed(event)
     elif isinstance(event, JabberIDSetEvent):
-        handle_jid_set(event)
+        return handle_jid_set(event)
     elif isinstance(event, JabberIDUnsetEvent):
-        handle_jid_unset(event)
+        return handle_jid_unset(event)
 
 def handle_jid_set(event):
     pass