Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2017-03-26 13:56:46 +0300
committerEion Robb <eion@robbmob.com>2017-03-26 13:56:46 +0300
commitaa1ada4273276df071ba70e3c0d35ba3b7750528 (patch)
tree82d348724b85352206844bfc715df652b27d7978
parent1a73bbcdf0ee3d94fbe6fd00352eda1a9ebec1a3 (diff)
Get bot messages coming through
-rw-r--r--skypeweb/skypeweb_messages.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/skypeweb/skypeweb_messages.c b/skypeweb/skypeweb_messages.c
index 0170c41..e27e992 100644
--- a/skypeweb/skypeweb_messages.c
+++ b/skypeweb/skypeweb_messages.c
@@ -1022,6 +1022,11 @@ skypeweb_subscribe_to_contact_status(SkypeWebAccount *sa, GSList *contacts)
JsonObject *contact = json_object_new();
gchar *id;
+ if (SKYPEWEB_BUDDY_IS_BOT(cur->data)) {
+ purple_protocol_got_user_status(sa->account, cur->data, SKYPEWEB_STATUS_ONLINE, NULL);
+ continue;
+ }
+
id = g_strconcat(skypeweb_user_url_prefix(cur->data), cur->data, NULL);
json_object_set_string_member(contact, "id", id);
json_array_add_object_element(contacts_array, contact);
@@ -1206,7 +1211,7 @@ skypeweb_get_registration_token(SkypeWebAccount *sa)
"Host: %s\r\n"
"Content-Type: application/json\r\n"
"Authentication: skypetoken=%s\r\n"
- "Content-Length: 2\r\n\r\n{}",
+ "Content-Length: 28\r\n\r\n{\"endpointFeatures\":\"Agent\"}",
curtime, response, sa->messages_host, sa->skype_token);
//purple_debug_info("skypeweb", "reg token request is %s\n", request);