summaryrefslogtreecommitdiff
path: root/src/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-04-14 01:34:24 +0200
committermathieui <mathieui@mathieui.net>2015-04-14 01:34:24 +0200
commite78ed92ba36829b89007fe390e8b19b2b59514e3 (patch)
tree0ca15e976d05689adacfb594e1cae93d3e74a072 /src/tabs
parent64ec234f6b111b1fade558060d0854f256024316 (diff)
downloadpoezio-e78ed92ba36829b89007fe390e8b19b2b59514e3.tar.gz
poezio-e78ed92ba36829b89007fe390e8b19b2b59514e3.tar.bz2
poezio-e78ed92ba36829b89007fe390e8b19b2b59514e3.tar.xz
poezio-e78ed92ba36829b89007fe390e8b19b2b59514e3.zip
Fix #2714 (make bare /bookmark use the current room password if there is one)
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/muctab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tabs/muctab.py b/src/tabs/muctab.py
index 1f202dd0..c84c92cc 100644
--- a/src/tabs/muctab.py
+++ b/src/tabs/muctab.py
@@ -55,13 +55,14 @@ class MucTab(ChatTab):
message_type = 'groupchat'
plugin_commands = {}
plugin_keys = {}
- def __init__(self, jid, nick):
+ def __init__(self, jid, nick, password=None):
self.joined = False
ChatTab.__init__(self, jid)
if self.joined == False:
self._state = 'disconnected'
self.own_nick = nick
self.name = jid
+ self.password = password
self.users = []
self.privates = [] # private conversations
self.topic = ''