comparison src/protocols/msn/switchboard.c @ 5454:c6efac0e28ff

[gaim-migrate @ 5842] Fixed the bug where EVERYBODY is a gaim user. This may have fixed a couple other bugs as well. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 20 May 2003 03:32:37 +0000
parents ad445074d239
children ad9887c91a59
comparison
equal deleted inserted replaced
5453:a57165ee5666 5454:c6efac0e28ff
271 char *format; 271 char *format;
272 int flags = 0; 272 int flags = 0;
273 273
274 body = g_strdup(msn_message_get_body(msg)); 274 body = g_strdup(msn_message_get_body(msg));
275 275
276 gaim_debug(GAIM_DEBUG_INFO, "msn", "Checking User-Agent...\n");
277
276 if ((value = msn_message_get_attr(msg, "User-Agent")) != NULL) { 278 if ((value = msn_message_get_attr(msg, "User-Agent")) != NULL) {
277 if (!g_ascii_strncasecmp(value, "Gaim", 4)) 279 gaim_debug(GAIM_DEBUG_MISC, "msn", "value = '%s'\n", value);
280 if (!g_ascii_strncasecmp(value, "Gaim", 4)) {
281 gaim_debug(GAIM_DEBUG_INFO, "msn", "Setting GAIMUSER flag.\n");
278 flags |= IM_FLAG_GAIMUSER; 282 flags |= IM_FLAG_GAIMUSER;
283 }
279 } 284 }
280 285
281 if ((value = msn_message_get_attr(msg, "X-MMS-IM-Format")) != NULL) { 286 if ((value = msn_message_get_attr(msg, "X-MMS-IM-Format")) != NULL) {
282 format = msn_parse_format(value); 287 format = msn_parse_format(value);
283 288