summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-04 15:51:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-04 15:51:20 +0300
commitd79863a94153f452d9cd059a32bab8076a154e96 (patch)
treee8db3db12aa7b941a794b652b55a4aae4574ee63 /protocols
parentd91e3838c0d434910b5604871a30dc12d977b69e (diff)
Facebook: hidden setting added (Added STRING) for people who want to see smth different in the session list
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Facebook/src/mqtt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Facebook/src/mqtt.cpp b/protocols/Facebook/src/mqtt.cpp
index b7fbe0a3bd..ff4f6eb21b 100644
--- a/protocols/Facebook/src/mqtt.cpp
+++ b/protocols/Facebook/src/mqtt.cpp
@@ -203,6 +203,9 @@ void FacebookProto::MqttSend(const MqttMessage &payload)
void FacebookProto::MqttLogin()
{
+ // Hidden setting!! Agent = how Miranda would be visible in the session list
+ ptrA pszAgent(getStringA("Agent", FB_API_MQTT_AGENT));
+
uint8_t zeroByte = 0;
Utils_GetRandom(&m_iMqttId, sizeof(m_iMqttId) / 2);
@@ -216,7 +219,7 @@ void FacebookProto::MqttLogin()
thrift.writeInt64(m_uid);
thrift.writeField(FB_THRIFT_TYPE_STRING); // User agent
- thrift << FB_API_MQTT_AGENT;
+ thrift << pszAgent;
thrift.writeField(FB_THRIFT_TYPE_I64);
thrift.writeInt64(23);