we can now join password protected groupchats

This commit is contained in:
Yann Leboulanger 2005-05-18 09:18:29 +00:00
parent 5a775c8214
commit 35e6ac3de8
1 changed files with 3 additions and 1 deletions

View File

@ -833,7 +833,9 @@ class Connection:
return
p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
show = STATUS_LIST[self.connected], status = self.status)
p.setTag(common.xmpp.NS_MUC + ' x')
t = p.setTag(common.xmpp.NS_MUC + ' x')
if password:
t.setTagData('password', password)
self.connection.send(p)
def send_gc_message(self, jid, msg):