Mercurial > xib
comparison bridge.py @ 125:efdc038e757a
fixed participant.changeNickname(), renamed IRC.server() to IRC.open_connection(), created IRC.get_connection() and IRC.has_connection(), removed irclib.SimpleIRCClient (we don't need it)
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 13 Jan 2010 22:28:09 +0100 |
parents | 99f3dee1fad7 |
children | 46af7f2744a9 |
comparison
equal
deleted
inserted
replaced
124:99f3dee1fad7 | 125:efdc038e757a |
---|---|
74 raise | 74 raise |
75 | 75 |
76 # Join IRC room | 76 # Join IRC room |
77 try: | 77 try: |
78 self.irc_connections_limit = -1 | 78 self.irc_connections_limit = -1 |
79 self.irc_connection = self.bot.irc.server(self.irc_server, self.irc_port, self.bot.nickname) | 79 self.irc_connection = self.bot.irc.open_connection(self.irc_server, self.irc_port, self.bot.nickname) |
80 self.irc_connection.connect(nick_callback=self._irc_nick_callback) | 80 self.irc_connection.connect(nick_callback=self._irc_nick_callback) |
81 except: | 81 except: |
82 self.bot.error('[Error] joining IRC room failed') | 82 self.bot.error('[Error] joining IRC room failed') |
83 raise | 83 raise |
84 | 84 |