diff 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
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Tue May 20 03:11:15 2003 +0000
+++ b/src/protocols/msn/switchboard.c	Tue May 20 03:32:37 2003 +0000
@@ -273,9 +273,14 @@
 
 	body = g_strdup(msn_message_get_body(msg));
 
+	gaim_debug(GAIM_DEBUG_INFO, "msn", "Checking User-Agent...\n");
+
 	if ((value = msn_message_get_attr(msg, "User-Agent")) != NULL) {
-		if (!g_ascii_strncasecmp(value, "Gaim", 4))
+		gaim_debug(GAIM_DEBUG_MISC, "msn", "value = '%s'\n", value);
+		if (!g_ascii_strncasecmp(value, "Gaim", 4)) {
+			gaim_debug(GAIM_DEBUG_INFO, "msn", "Setting GAIMUSER flag.\n");
 			flags |= IM_FLAG_GAIMUSER;
+		}
 	}
 
 	if ((value = msn_message_get_attr(msg, "X-MMS-IM-Format")) != NULL) {