summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-08-11 13:58:08 +0000
committerRobert Pösel <robyer@seznam.cz>2014-08-11 13:58:08 +0000
commite54f5144d2be315ee14ea7ae42a2a38f53e1162a (patch)
tree780cff78c56c8c384fe82ca66f9ac25a5bc25ac7 /protocols/FacebookRM/src/json.cpp
parentfcd08bb4c2fb2ef60efa4a434a673941152916c7 (diff)
Facebook: Hidden option to disable multi user chat
git-svn-id: http://svn.miranda-ng.org/main/trunk@10155 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 2715ebc9ec..eb1bd02d95 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -444,6 +444,9 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
JSONNODE *threadid = json_get(it, "tid");
if (threadid != NULL) { // multi user chat
+ if (proto->m_disableChat)
+ continue;
+
std::tstring tid = json_as_string(threadid);
std::string reader_id = json_as_pstring(reader);
@@ -603,6 +606,8 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
proto->StopTyping(hContact);
} else if (t == "ttyp") {
// multi chat typing notification
+ if (proto->m_disableChat)
+ continue;
JSONNODE *from_ = json_get(it, "from");
JSONNODE *thread_ = json_get(it, "thread");
@@ -683,6 +688,8 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
}*/
} else if (t == "mercury") {
// rename multi user chat, ...
+ if (proto->m_disableChat)
+ continue;
JSONNODE *actions_ = json_get(it, "actions");
if (actions_ == NULL)