we can now join password protected groupchats
This commit is contained in:
parent
5a775c8214
commit
35e6ac3de8
|
@ -833,7 +833,9 @@ class Connection:
|
||||||
return
|
return
|
||||||
p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
|
p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
|
||||||
show = STATUS_LIST[self.connected], status = self.status)
|
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)
|
self.connection.send(p)
|
||||||
|
|
||||||
def send_gc_message(self, jid, msg):
|
def send_gc_message(self, jid, msg):
|
||||||
|
|
Loading…
Reference in New Issue