send password of the room when we invite a contact in it. Fixes #8197

This commit is contained in:
Yann Leboulanger 2015-12-02 23:05:10 +01:00
parent 7f66f65ed7
commit bc880bd892
1 changed files with 3 additions and 0 deletions

View File

@ -2982,6 +2982,9 @@ class Connection(CommonConnection, ConnectionHandlers):
attrs['reason'] = reason attrs['reason'] = reason
if continue_tag: if continue_tag:
attrs['continue'] = 'true' attrs['continue'] = 'true'
password = gajim.gc_passwords.get(room, '')
if password:
attrs['password'] = password
c = message.addChild(name='x', attrs=attrs, c = message.addChild(name='x', attrs=attrs,
namespace=nbxmpp.NS_CONFERENCE) namespace=nbxmpp.NS_CONFERENCE)
self.connection.send(message) self.connection.send(message)