diff options
author | mathieui <mathieui@mathieui.net> | 2015-04-14 01:34:24 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-04-14 01:34:24 +0200 |
commit | e78ed92ba36829b89007fe390e8b19b2b59514e3 (patch) | |
tree | 0ca15e976d05689adacfb594e1cae93d3e74a072 /src/core/commands.py | |
parent | 64ec234f6b111b1fade558060d0854f256024316 (diff) | |
download | poezio-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/core/commands.py')
-rw-r--r-- | src/core/commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/commands.py b/src/core/commands.py index 338590f1..e0e426b2 100644 --- a/src/core/commands.py +++ b/src/core/commands.py @@ -388,13 +388,15 @@ def command_join(self, args, histo_length=None): seconds = int(seconds) else: seconds = 0 + if password: + tab.password = password muc.join_groupchat(self, room, nick, password, histo_length, current_status.message, current_status.show, seconds=seconds) if not tab: - self.open_new_room(room, nick) + self.open_new_room(room, nick, password=password) muc.join_groupchat(self, room, nick, password, histo_length, current_status.message, @@ -448,6 +450,8 @@ def _add_bookmark(self, jid, autojoin, password, method): roomname = tab.name if tab.joined and tab.own_nick != self.own_nick: nick = tab.own_nick + if password is None and tab.password is not None: + password = tab.password elif jid == '*': return _add_wildcard_bookmarks(self, method) else: |