diff participant.py @ 11:79b0a7f48a3e

Introduced the command mechanism and fixed a bug Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 17 Aug 2009 00:30:37 +0200
parents 7cb790f5f243
children 32a35f7eff70
line wrap: on
line diff
--- a/participant.py
+++ b/participant.py
@@ -199,9 +199,9 @@ class participant:
 	def leave(self, message):
 		if message == None:
 			message = ''
-		if self.muc:
+		if self.xmpp_c != None:
 			self.muc.leave(message)
-		if self.irc_connection:
+		if self.irc_connection != None:
 			self.irc_connection.closing = True
 			self.irc_connection.disconnect(message)
 			self.irc_connection = None