comparison participant.py @ 61:624c086b0a02

Don't create an XMPP duplicate for ChanServ Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 29 Aug 2009 13:15:10 +0200
parents 0c00cf22492d
children 61491895c607
comparison
equal deleted inserted replaced
60:d8941159fd44 61:624c086b0a02
39 else: 39 else:
40 raise Exception('[Internal Error] bad protocol') 40 raise Exception('[Internal Error] bad protocol')
41 41
42 42
43 def createDuplicateOnXMPP(self): 43 def createDuplicateOnXMPP(self):
44 if self.xmpp_c != None or self.irc_connection != None or self.bridge.mode == 'minimal': 44 if self.xmpp_c != None or self.irc_connection != None or self.bridge.mode == 'minimal' or self.nickname == 'ChanServ':
45 return 45 return
46 self.xmpp_c = self.bridge.bot.get_xmpp_connection(self.nickname) 46 self.xmpp_c = self.bridge.bot.get_xmpp_connection(self.nickname)
47 self.muc = xmpp.muc(self.bridge.xmpp_room.room_jid) 47 self.muc = xmpp.muc(self.bridge.xmpp_room.room_jid)
48 self.muc.join(self.xmpp_c, self.nickname, status='From IRC', callback=self._xmpp_join_callback) 48 self.muc.join(self.xmpp_c, self.nickname, status='From IRC', callback=self._xmpp_join_callback)
49 49