changeset 31099:ccb05979ab8a

Don't attempt to parse extended caps if not using MSNP16.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 09 Dec 2009 21:10:08 +0000
parents 4cdea258b143
children 0a22d67651ce
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Wed Dec 09 21:09:14 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Wed Dec 09 21:10:08 2009 +0000
@@ -1324,7 +1324,7 @@
 	}
 
 	clientid = strtoul(cmd->params[4], &extcap_str, 10);
-	if (extcap_str && *extcap_str)
+	if (session->protocol_ver >= 16 && extcap_str && *extcap_str)
 		extcaps = strtoul(extcap_str+1, NULL, 10);
 	else
 		extcaps = 0;