changeset 252:93990ebdbbaf

minor fix in Participant, reduce code redundancy Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 08 Mar 2010 23:55:16 +0100
parents 49c57daff4d7
children e64b574afa8f
files participant.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):