changeset 102:b3eba9489329

In minimal mode, display the participants' list on XMPP when someone joins on IRC Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Fri, 20 Nov 2009 15:31:41 +0100
parents 29d3b85c6286
children 23416c27b592
files bridge.py
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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