comparison muc.py @ 7:9631f8d9895d

Removed a self._check() in muc.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 16 Aug 2009 21:28:02 +0200
parents cb0daec4b778
children 32a35f7eff70
comparison
equal deleted inserted replaced
6:a9bfe4f7bf72 7:9631f8d9895d
98 self.xmpp_c.send(xmpp.protocol.Message(to=self.room_jid+'/'+to, typ='chat', body=message)) 98 self.xmpp_c.send(xmpp.protocol.Message(to=self.room_jid+'/'+to, typ='chat', body=message))
99 99
100 100
101 def change_nick(self, nickname, callback=None): 101 def change_nick(self, nickname, callback=None):
102 """Change nickname""" 102 """Change nickname"""
103 self._check()
104 self.jid = self.room_jid+'/'+nickname 103 self.jid = self.room_jid+'/'+nickname
105 self.callback = callback 104 self.callback = callback
106 self.xmpp_c.RegisterHandler('presence', self._xmpp_presence_handler) 105 self.xmpp_c.RegisterHandler('presence', self._xmpp_presence_handler)
107 self.xmpp_c.send(xmpp.protocol.Presence(to=self.jid)) 106 self.xmpp_c.send(xmpp.protocol.Presence(to=self.jid))
108 107