Mercurial > xib
comparison participant.py @ 197:4a379eb359dd
bugfix, forgot "importance" argument of Bridge.say() in c5922031a4ac09c95713c4a4a18b1e0a0aad3e54
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Tue, 23 Feb 2010 22:14:13 +0100 |
parents | 12fa9bb73b1d |
children | dcabe54deeba |
comparison
equal
deleted
inserted
replaced
196:4011838e098e | 197:4a379eb359dd |
---|---|
292 bot_say = True | 292 bot_say = True |
293 elif not isinstance(self.xmpp_c, xmpp.client.Client): | 293 elif not isinstance(self.xmpp_c, xmpp.client.Client): |
294 bot_say = True | 294 bot_say = True |
295 if bot_say: | 295 if bot_say: |
296 if action: | 296 if action: |
297 self.bridge.say('* '+self.nickname+' '+message, on_xmpp=False) | 297 self.bridge.say(-1, '* '+self.nickname+' '+message, on_xmpp=False) |
298 else: | 298 else: |
299 self.bridge.say('<'+self.nickname+'> '+message, on_xmpp=False) | 299 self.bridge.say(-1, '<'+self.nickname+'> '+message, on_xmpp=False) |
300 | 300 |
301 | 301 |
302 def sayOnIRCTo(self, to, message): | 302 def sayOnIRCTo(self, to, message): |
303 if isinstance(self.irc_connection, ServerConnection): | 303 if isinstance(self.irc_connection, ServerConnection): |
304 self.irc_connection.privmsg(to, message) | 304 self.irc_connection.privmsg(to, message) |
312 def sayOnXMPP(self, message): | 312 def sayOnXMPP(self, message): |
313 if isinstance(self.xmpp_c, xmpp.client.Client): | 313 if isinstance(self.xmpp_c, xmpp.client.Client): |
314 self.muc.say(message) | 314 self.muc.say(message) |
315 elif not isinstance(self.irc_connection, ServerConnection): | 315 elif not isinstance(self.irc_connection, ServerConnection): |
316 if message[:4] == '/me ': | 316 if message[:4] == '/me ': |
317 self.bridge.say('* '+self.nickname+' '+message[4:], on_irc=False) | 317 self.bridge.say(-1, '* '+self.nickname+' '+message[4:], on_irc=False) |
318 else: | 318 else: |
319 self.bridge.say('<'+self.nickname+'> '+message, on_irc=False) | 319 self.bridge.say(-1, '<'+self.nickname+'> '+message, on_irc=False) |
320 | 320 |
321 | 321 |
322 def sayOnXMPPTo(self, to, message): | 322 def sayOnXMPPTo(self, to, message): |
323 if isinstance(self.xmpp_c, xmpp.client.Client): | 323 if isinstance(self.xmpp_c, xmpp.client.Client): |
324 self.muc.sayTo(to, message) | 324 self.muc.sayTo(to, message) |