Mercurial > xib
comparison 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 |
comparison
equal
deleted
inserted
replaced
10:7cb790f5f243 | 11:79b0a7f48a3e |
---|---|
197 | 197 |
198 | 198 |
199 def leave(self, message): | 199 def leave(self, message): |
200 if message == None: | 200 if message == None: |
201 message = '' | 201 message = '' |
202 if self.muc: | 202 if self.xmpp_c != None: |
203 self.muc.leave(message) | 203 self.muc.leave(message) |
204 if self.irc_connection: | 204 if self.irc_connection != None: |
205 self.irc_connection.closing = True | 205 self.irc_connection.closing = True |
206 self.irc_connection.disconnect(message) | 206 self.irc_connection.disconnect(message) |
207 self.irc_connection = None | 207 self.irc_connection = None |
208 self.nickname = None | 208 self.nickname = None |
209 | 209 |