summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/MUC')
-rw-r--r--Swiften/MUC/MUCBookmarkManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Swiften/MUC/MUCBookmarkManager.cpp b/Swiften/MUC/MUCBookmarkManager.cpp
index aa8f026..3675635 100644
--- a/Swiften/MUC/MUCBookmarkManager.cpp
+++ b/Swiften/MUC/MUCBookmarkManager.cpp
@@ -28,15 +28,15 @@ void MUCBookmarkManager::handleBookmarksReceived(boost::shared_ptr<Storage> payl
storage = payload;
std::vector<MUCBookmark> receivedBookmarks;
- foreach (Storage::Conference conference, payload->getConferences()) {
- String name = (!conference.name.isEmpty()) ? conference.name : conference.jid.getNode();
- MUCBookmark bookmark(conference.jid, name);
- bookmark.setAutojoin(conference.autoJoin);
- if (!conference.nick.isEmpty()) {
- bookmark.setNick(conference.nick);
+ foreach (Storage::Room room, payload->getRooms()) {
+ String name = (!room.name.isEmpty()) ? room.name : room.jid.getNode();
+ MUCBookmark bookmark(room.jid, name);
+ bookmark.setAutojoin(room.autoJoin);
+ if (!room.nick.isEmpty()) {
+ bookmark.setNick(room.nick);
}
- if (!conference.password.isEmpty()) {
- bookmark.setPassword(conference.password);
+ if (!room.password.isEmpty()) {
+ bookmark.setPassword(room.password);
}
receivedBookmarks.push_back(bookmark);
}