From 32ff425c455a489adf7f5fa3ac876b63cbd0796b Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Mon, 5 Mar 2012 08:11:24 +0000
Subject: Save password when bookmarking rooms.

Resolves: #1066

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);
 	}
 
-- 
cgit v0.10.2-6-g49f6