summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 2cf3f4cdf7..c216eeccc9 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -547,6 +547,14 @@ std::string facebook_client::get_newsfeed_type()
return feed_types[feed_type].id;
}
+std::string facebook_client::get_server_type()
+{
+ BYTE server_type = db_get_b(NULL, parent->m_szModuleName, FACEBOOK_KEY_SERVER_TYPE, 0);
+ if (server_type < 0 || server_type >= SIZEOF(server_types))
+ server_type = 0;
+ return server_types[server_type].id;
+}
+
char* facebook_client::load_cookies()
{
ScopedLock s(cookies_lock_);