Mercurial > xib
comparison bridge.py @ 231:5f1e9211af03
fix for 48ad162772b79740e8ff580bde2c250b9957c126, we do need arguments in nick callbacks
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 07 Mar 2010 23:03:18 +0100 |
parents | 0d85049ac68d |
children | 4ad8e985c7d3 |
comparison
equal
deleted
inserted
replaced
230:d5a126cf119c | 231:5f1e9211af03 |
---|---|
73 def _join_irc_failed(self, reason): | 73 def _join_irc_failed(self, reason): |
74 self.bot.error(say_levels.error, 'failed to connect to the IRC chan of bridge '+str(self)+'\nreason: '+reason, send_to_admins=True) | 74 self.bot.error(say_levels.error, 'failed to connect to the IRC chan of bridge '+str(self)+'\nreason: '+reason, send_to_admins=True) |
75 self.stop(message='Failed to connect to the IRC chan, stopping bridge', log=False) | 75 self.stop(message='Failed to connect to the IRC chan, stopping bridge', log=False) |
76 | 76 |
77 | 77 |
78 def _irc_nick_callback(self, error): | 78 def _irc_nick_callback(self, error, arguments=None): |
79 if not error: | 79 if not error: |
80 if not self.mode: | 80 if not self.mode: |
81 return | 81 return |
82 self.irc_connection.join(self.irc_room, callback=self._irc_join_callback) | 82 self.irc_connection.join(self.irc_room, callback=self._irc_join_callback) |
83 | 83 |