Mercurial > xib
diff muc.py @ 5:cb0daec4b778
Added support for IRC "nick" event, fixed participant.changeNickname(), fixed handling of IRC "namreply" event, removed muc._check() because waiting does not solve the problem if it is blocking incoming messages handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 16 Aug 2009 17:59:00 +0200 |
parents | 4c842d23d4ce |
children | 9631f8d9895d |
line wrap: on
line diff
--- a/muc.py +++ b/muc.py @@ -88,24 +88,13 @@ class muc: self.callback(errors) - def _check(self): - i = 0 - while not self.connected: - i += 1 - if i > 30: - raise Exception('Error: connection to room timed out') - sleep(1) - - def say(self, message): """Say message in the room""" - self._check() self.xmpp_c.send(xmpp.protocol.Message(to=self.room_jid, typ='groupchat', body=message)) def sayTo(self, to, message): """Send a private message""" - self._check() self.xmpp_c.send(xmpp.protocol.Message(to=self.room_jid+'/'+to, typ='chat', body=message))