summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/mqtt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Facebook/src/mqtt.cpp')
-rw-r--r--protocols/Facebook/src/mqtt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/Facebook/src/mqtt.cpp b/protocols/Facebook/src/mqtt.cpp
index ff4f6eb21b..94a44a90c9 100644
--- a/protocols/Facebook/src/mqtt.cpp
+++ b/protocols/Facebook/src/mqtt.cpp
@@ -203,9 +203,6 @@ 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);
@@ -219,7 +216,7 @@ void FacebookProto::MqttLogin()
thrift.writeInt64(m_uid);
thrift.writeField(FB_THRIFT_TYPE_STRING); // User agent
- thrift << pszAgent;
+ thrift << GetAgentString();
thrift.writeField(FB_THRIFT_TYPE_I64);
thrift.writeInt64(23);