# HG changeset patch # User Charly COSTE # Date 1268088916 -3600 # Node ID 93990ebdbbaf80411699e313ed30f8935dd212ed # Parent 49c57daff4d7e56b03f86768270eae69b5f104d0 minor fix in Participant, reduce code redundancy Signed-off-by: Charly COSTE diff --git a/participant.py b/participant.py --- a/participant.py +++ b/participant.py @@ -102,9 +102,7 @@ class Participant: except xmpp.muc.RemoteServerNotFound: self.bridge._RemoteServerNotFound_handler() - if isinstance(self.xmpp_c, xmpp.client.Client): - self.bridge.bot.close_xmpp_connection(self.nickname) - self.xmpp_c = None + self._close_xmpp_connection() def create_duplicate_on_irc(self):