diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-03-05 08:11:24 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-03-05 08:11:24 (GMT) |
commit | 32ff425c455a489adf7f5fa3ac876b63cbd0796b (patch) | |
tree | c8b6058311cdf8f7a0193f2de02088b365c5c5cb | |
parent | 7e4e32a06effd8c7164e0a3d241bdd834d51e4a0 (diff) | |
download | swift-32ff425c455a489adf7f5fa3ac876b63cbd0796b.zip swift-32ff425c455a489adf7f5fa3ac876b63cbd0796b.tar.bz2 |
Save password when bookmarking rooms.
Resolves: #1066
-rw-r--r-- | Swift/Controllers/Chat/ChatsManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp index aedee4c..118f1e8 100644 --- a/Swift/Controllers/Chat/ChatsManager.cpp +++ b/Swift/Controllers/Chat/ChatsManager.cpp @@ -560,6 +560,9 @@ void ChatsManager::handleJoinMUCRequest(const JID &mucJID, const boost::optional if (nickMaybe) { bookmark.setNick(*nickMaybe); } + if (password) { + bookmark.setPassword(*password); + } mucBookmarkManager_->addBookmark(bookmark); } |