diff options
author | Marius Halden <marius.h@lden.org> | 2017-03-30 11:24:33 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-03-30 11:24:33 +0200 |
commit | 195f1a3a40b19f8df919a69def0829388a06bf3b (patch) | |
tree | d164fbeab69c0cd374f19e70048969860677b51f /facebook/facebook-api.h | |
parent | b6ed8a8791605d882a8e389ea0b9db2b05713dd1 (diff) | |
parent | 2f17542c7a866f1963b0b51b01736652d53dd70d (diff) | |
download | bitlbee-facebook-195f1a3a40b19f8df919a69def0829388a06bf3b.tar.gz bitlbee-facebook-195f1a3a40b19f8df919a69def0829388a06bf3b.tar.bz2 bitlbee-facebook-195f1a3a40b19f8df919a69def0829388a06bf3b.tar.xz |
Merge branch 'master' into track-messages
Diffstat (limited to 'facebook/facebook-api.h')
-rw-r--r-- | facebook/facebook-api.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h index fa38d3d..7236b48 100644 --- a/facebook/facebook-api.h +++ b/facebook/facebook-api.h @@ -89,26 +89,36 @@ #define FB_API_SECRET "374e60f8b9bb6b8cbb30f78030438895" /** + * FB_ORCA_AGENT + * + * The part of the user agent that looks like the official client, since the + * server started checking this. + * + * We announce ourselves as compatible with Orca-Android 38.0 since that's the + * closest version to the last major protocol update. Some parts use older + * features, some parts use newer ones. + * + * Fun fact: this version sends old-style MQIsdp CONNECT messages for the first + * connection, with JSON payloads instead of compressed thrift. + * + */ + +#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]" + +/** * FB_API_AGENT: * * The HTTP User-Agent header. */ -#define FB_API_AGENT "Facebook plugin / BitlBee / " PACKAGE_VERSION +#define FB_API_AGENT "Facebook plugin / BitlBee / " PACKAGE_VERSION " " FB_ORCA_AGENT /** * FB_API_MQTT_AGENT * * The client information string sent in the MQTT CONNECT message - * - * We announce ourselves as compatible with Orca-Android 38.0 since that's the - * closest version to the last major protocol update. Some parts use older - * features, some parts use newer ones. - * - * Fun fact: this version sends old-style MQIsdp CONNECT messages for the first - * connection, with JSON payloads instead of compressed thrift. */ -#define FB_API_MQTT_AGENT FB_API_AGENT " [FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]" +#define FB_API_MQTT_AGENT FB_API_AGENT /** |