summaryrefslogtreecommitdiffstats
path: root/src/jabber_whiteboard/connection-establishment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jabber_whiteboard/connection-establishment.cpp')
-rw-r--r--src/jabber_whiteboard/connection-establishment.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jabber_whiteboard/connection-establishment.cpp b/src/jabber_whiteboard/connection-establishment.cpp
index 5cc9e053d..2fb367bed 100644
--- a/src/jabber_whiteboard/connection-establishment.cpp
+++ b/src/jabber_whiteboard/connection-establishment.cpp
@@ -19,6 +19,8 @@
#include "file.h"
#include "document.h"
+#include "prefs-utils.h"
+
#include "xml/repr.h"
#include "jabber_whiteboard/defines.h"
@@ -90,6 +92,13 @@ SessionManager::sendRequestToChatroom(Glib::ustring const& server, Glib::ustring
this->session_data->chat_server = server;
this->session_data->chat_name = chatroom;
+ prefs_set_string_attribute("whiteboard.room", "name", chatroom.c_str());
+ prefs_set_string_attribute("whiteboard.room", "server", server.c_str());
+ //Commented out because you can use whiteboard.server.username
+ //prefs_set_string_attribute("whiteboard.room", "handle", handle.c_str());
+ //store password here?
+
+
this->setRecipient(String::ucompose("%1@%2", chatroom, server).data());
lm_message_unref(presence_req);