Mercurial > pidgin
comparison libpurple/protocols/msn/state.c @ 27061: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 | dd7e7071d46d |
children | 47c0795eb4fd |
comparison
equal
deleted
inserted
replaced
27060:08c6a0c88b2b | 27061:8ab2309dfd68 |
---|---|
303 const gchar *client_type = g_hash_table_lookup(ui_info, "client_type"); | 303 const gchar *client_type = g_hash_table_lookup(ui_info, "client_type"); |
304 if (client_type) { | 304 if (client_type) { |
305 if (strcmp(client_type, "phone") == 0 || | 305 if (strcmp(client_type, "phone") == 0 || |
306 strcmp(client_type, "handheld") == 0) { | 306 strcmp(client_type, "handheld") == 0) { |
307 caps |= MSN_CLIENT_CAP_WIN_MOBILE; | 307 caps |= MSN_CLIENT_CAP_WIN_MOBILE; |
308 } else if (strcmp(client_type, "web")) { | 308 } else if (strcmp(client_type, "web") == 0) { |
309 caps |= MSN_CLIENT_CAP_WEBMSGR; | 309 caps |= MSN_CLIENT_CAP_WEBMSGR; |
310 } else if (strcmp(client_type, "bot")) { | 310 } else if (strcmp(client_type, "bot") == 0) { |
311 caps |= MSN_CLIENT_CAP_BOT; | 311 caps |= MSN_CLIENT_CAP_BOT; |
312 } | 312 } |
313 /* MSN doesn't a "console" type... | 313 /* MSN doesn't a "console" type... |
314 What, they have no ncurses UI? :-) */ | 314 What, they have no ncurses UI? :-) */ |
315 } | 315 } |