diff libpurple/protocols/oscar/clientlogin.c @ 28740:41656cf6af7a

Send our distid when calling startOSCARSession, as request by AOL
author Mark Doliner <mark@kingant.net>
date Wed, 02 Dec 2009 22:21:30 +0000
parents 546dcce6f780
children 5e11c572d730
line wrap: on
line diff
--- a/libpurple/protocols/oscar/clientlogin.c	Wed Dec 02 22:17:36 2009 +0000
+++ b/libpurple/protocols/oscar/clientlogin.c	Wed Dec 02 22:21:30 2009 +0000
@@ -277,11 +277,15 @@
 
 	/* Construct the GET parameters */
 	query_string = g_strdup_printf("a=%s"
+			"&distId=%d"
 			"&f=xml"
 			"&k=%s"
 			"&ts=%" PURPLE_TIME_T_MODIFIER
 			"&useTLS=%d",
-			purple_url_encode(token), get_client_key(od), hosttime, use_tls);
+			purple_url_encode(token),
+			oscar_get_ui_info_int(od->icq ? "prpl-icq-distid"
+					: "prpl-aim-distid", 0x00000611),
+			get_client_key(od), hosttime, use_tls);
 	signature = generate_signature("GET", URL_START_OSCAR_SESSION,
 			query_string, session_key);
 	url = g_strdup_printf(URL_START_OSCAR_SESSION "?%s&sig_sha256=%s",