changeset 27143:8ab2309dfd68

These strcmp checks are for equality, meaning a return of 0.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 07 Jun 2009 01:21:36 +0000
parents 08c6a0c88b2b
children e2b6b376125c 01c91af62ab3
files libpurple/protocols/msn/state.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/state.c	Sun Jun 07 00:27:05 2009 +0000
+++ b/libpurple/protocols/msn/state.c	Sun Jun 07 01:21:36 2009 +0000
@@ -305,9 +305,9 @@
 			if (strcmp(client_type, "phone") == 0 ||
 				strcmp(client_type, "handheld") == 0) {
 				caps |= MSN_CLIENT_CAP_WIN_MOBILE;
-			} else if (strcmp(client_type, "web")) {
+			} else if (strcmp(client_type, "web") == 0) {
 				caps |= MSN_CLIENT_CAP_WEBMSGR;
-			} else if (strcmp(client_type, "bot")) {
+			} else if (strcmp(client_type, "bot") == 0) {
 				caps |= MSN_CLIENT_CAP_BOT;
 			}
 			/* MSN doesn't a "console" type...