comparison MoinMoin/events/__init__.py @ 2077:636e646f909b

Make jabber bot aware of contacts' presence. It now doesn't disturb contacts that are dnd, and queues messages for later delivery. This is a checkpoint commit.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sat, 02 Jun 2007 16:54:13 +0200
parents 0128bbaf0172
children c8bc6df45964
comparison
equal deleted inserted replaced
2076:0128bbaf0172 2077:636e646f909b
71 for name in names: 71 for name in names:
72 try: 72 try:
73 handler = wikiutil.importPlugin(cfg, "events", name, "handle") 73 handler = wikiutil.importPlugin(cfg, "events", name, "handle")
74 except PluginAttributeError: 74 except PluginAttributeError:
75 handler = None 75 handler = None
76 pass
77 76
78 if handler is not None: 77 if handler is not None:
79 event_handlers.append(handler) 78 event_handlers.append(handler)
80 79
81 def send_event(event): 80 def send_event(event):