# HG changeset patch # User Charly COSTE # Date 1258727501 -3600 # Node ID b3eba94893292b719fa302280a139e1bd9ee855e # Parent 29d3b85c6286864dcb32601a91905b78be318cbd In minimal mode, display the participants' list on XMPP when someone joins on IRC Signed-off-by: Charly COSTE diff --git a/bridge.py b/bridge.py --- a/bridge.py +++ b/bridge.py @@ -162,9 +162,13 @@ class bridge: return self.participants.append(p) self.lock.release() - if self.mode != 'normal' and from_protocol == 'xmpp': - xmpp_participants_nicknames = self.get_participants_nicknames_list(protocols=['xmpp']) - self.say('[Info] Participants on XMPP: '+' '.join(xmpp_participants_nicknames), on_xmpp=False) + if self.mode != 'normal': + if from_protocol == 'xmpp': + xmpp_participants_nicknames = self.get_participants_nicknames_list(protocols=['xmpp']) + self.say('[Info] Participants on XMPP: '+' '.join(xmpp_participants_nicknames), on_xmpp=False) + elif self.mode == 'minimal' and from_protocol == 'irc': + irc_participants_nicknames = self.get_participants_nicknames_list(protocols=['irc']) + self.say('[Info] Participants on IRC: '+' '.join(irc_participants_nicknames), on_irc=False) return p