comparison bot.py @ 151:a04840ad92b7

oops, forgot to modify Bot.new_bridge() in the previous commit Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 17 Jan 2010 21:18:35 +0100
parents fcab2bdf1d65
children 17305e57f71d
comparison
equal deleted inserted replaced
150:e0eea72ea493 151:a04840ad92b7
701 self.xmpp_c.send(xmpp.protocol.Message(to=admin_jid, body=message, typ='chat')) 701 self.xmpp_c.send(xmpp.protocol.Message(to=admin_jid, body=message, typ='chat'))
702 except: 702 except:
703 pass 703 pass
704 704
705 705
706 def new_bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=6667): 706 def new_bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=6667, irc_connection_interval=1):
707 """Create a bridge between xmpp_room and irc_room at irc_server.""" 707 """Create a bridge between xmpp_room and irc_room at irc_server."""
708 b = Bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=irc_port) 708 b = Bridge(self, xmpp_room, irc_room, irc_server, mode, say_level, irc_port=irc_port, irc_connection_interval=irc_connection_interval)
709 self.bridges.append(b) 709 self.bridges.append(b)
710 return b 710 return b
711 711
712 712
713 def findBridges(self, str_array): 713 def findBridges(self, str_array):