changeset 20446:9e585c2dbf07

Tidy up protocol version detection
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 28 May 2007 02:20:41 +0000
parents 203b45c4c8a0
children 18ecdee88ed0
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Mon May 28 02:15:55 2007 +0000
+++ b/libpurple/protocols/msn/notification.c	Mon May 28 02:20:41 2007 +0000
@@ -325,10 +325,9 @@
 
 	g_snprintf(proto_str, sizeof(proto_str), "MSNP%d", session->protocol_ver);
 
-	for (i = 1; i < cmd->param_count -1; i++)
+	for (i = 1; i < cmd->param_count; i++)
 	{
-		purple_debug_info("MaYuan","%s,proto_str:%s\n",cmd->params[i],proto_str);
-		if (strcmp(cmd->params[i], proto_str) >= 0)
+		if (!strcmp(cmd->params[i], proto_str))
 		{
 			protocol_supported = TRUE;
 			break;