# HG changeset patch # User Charly COSTE # Date 1268069413 -3600 # Node ID cf4f00441628f9e86051a4774dacca9db2bb00b0 # Parent 9b83cdd515239861d6770ef79321871f37e9cbb3 fix for Participant say_on_xmpp* functions, really check we are in the room before sending message Signed-off-by: Charly COSTE diff --git a/participant.py b/participant.py --- a/participant.py +++ b/participant.py @@ -315,14 +315,14 @@ class Participant: def say_on_xmpp(self, message, action=False): - if isinstance(self.xmpp_c, xmpp.client.Client): + if self.muc.connected: self.muc.say(message, action=action) elif not isinstance(self.irc_connection, ServerConnection): self.bridge.say_on_behalf(self.nickname, message, 'xmpp', action=action) def say_on_xmpp_to(self, to, message, action=False): - if isinstance(self.xmpp_c, xmpp.client.Client): + if self.muc.connected: self.muc.say_to(to, message, action=action) elif not isinstance(self.irc_connection, ServerConnection): if self.bridge.mode not in ['normal', 'bypass']: