Mercurial > xib
comparison bot.py @ 21:801160b4136f
Introduced a bridge's "say" attribute to offer more flexibility in what the bot says.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 20 Aug 2009 15:17:20 +0200 |
parents | 08cde283621a |
children | e2bd4de698e5 |
comparison
equal
deleted
inserted
replaced
20:08cde283621a | 21:801160b4136f |
---|---|
370 | 370 |
371 # Unhandled events | 371 # Unhandled events |
372 self.error('=> Debug: event not handled', debug=True) | 372 self.error('=> Debug: event not handled', debug=True) |
373 | 373 |
374 | 374 |
375 def new_bridge(self, xmpp_room, irc_room, irc_server, mode, say_participants_list, irc_port=6667): | 375 def new_bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=6667): |
376 """Create a bridge between xmpp_room and irc_room at irc_server.""" | 376 """Create a bridge between xmpp_room and irc_room at irc_server.""" |
377 b = bridge(self, xmpp_room, irc_room, irc_server, mode, say_participants_list, irc_port=irc_port) | 377 b = bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=irc_port) |
378 self.bridges.append(b) | 378 self.bridges.append(b) |
379 return b | 379 return b |
380 | 380 |
381 | 381 |
382 def getBridges(self, irc_room=None, irc_server=None, xmpp_room_jid=None): | 382 def getBridges(self, irc_room=None, irc_server=None, xmpp_room_jid=None): |