From 35e6ac3de832296bbed44263578d5b2c5dd9904e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 18 May 2005 09:18:29 +0000 Subject: [PATCH] we can now join password protected groupchats --- src/common/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index ff3eb5c1e4..69c456469f 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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): -- GitLab