aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-03-19 07:29:43 -0300
committerdequis <dx@dxzone.com.ar>2015-04-10 14:10:41 -0300
commit3058c309ef7a3ac35e8942a3c414fbc868cdffbf (patch)
tree24b47607a9cadf7fcf04b46a280e7abddccc2077
parent73b1a8ee4370e5dd59b21ac9cf98120682632c59 (diff)
msn_set_away: fix strcmp check for idle
-rw-r--r--protocols/msn/msn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index f6d85a4f..dbacb413 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -185,7 +185,7 @@ static void msn_set_away(struct im_connection *ic, char *state, char *message)
statecode = (char *) md->away_state->code;
nick = set_getstr(&ic->acc->set, "display_name");
psm = message ? message : "";
- idle = strcmp(statecode, "IDL") ? "false" : "true";
+ idle = (strcmp(statecode, "IDL") == 0) ? "false" : "true";
body = g_markup_printf_escaped(MSN_PUT_USER_BODY,
nick, psm, psm, md->uuid, statecode, md->uuid, idle, statecode,