comparison bot.py @ 115:0ae0f8836a7a

split long messages when sending on IRC Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 28 Nov 2009 23:33:48 +0100
parents 6daf0854aa9f
children b29fd5696a78
comparison
equal deleted inserted replaced
114:787e97d62404 115:0ae0f8836a7a
663 if len(bridges) == 0: 663 if len(bridges) == 0:
664 self.error(event_str, debug=True) 664 self.error(event_str, debug=True)
665 self.error('===> Debug: no bridge found for "'+event.target().lower()+' at '+connection.server+'"', debug=True) 665 self.error('===> Debug: no bridge found for "'+event.target().lower()+' at '+connection.server+'"', debug=True)
666 return 666 return
667 for bridge in bridges: 667 for bridge in bridges:
668 bridge.addParticipant('irc', nickname) 668 bridge.addParticipant('irc', nickname, irc_id=event.source())
669 return 669 return
670 670
671 671
672 # From here the event is shown 672 # From here the event is shown
673 self.error(event_str, debug=True) 673 self.error(event_str, debug=True)