diff options
Diffstat (limited to 'protocols/msn')
-rw-r--r-- | protocols/msn/Makefile | 1 | ||||
-rw-r--r-- | protocols/msn/msn.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/protocols/msn/Makefile b/protocols/msn/Makefile index 6c59aedb..781482f5 100644 --- a/protocols/msn/Makefile +++ b/protocols/msn/Makefile @@ -14,7 +14,6 @@ endif # [SH] Program variables objects = msn.o msn_util.o ns.o passport.o sb.o tables.o -CFLAGS += -Wall LFLAGS += -r # [SH] Phony targets diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index de8271e8..60d58532 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -175,11 +175,10 @@ static void msn_set_away( struct im_connection *ic, char *state, char *message ) char buf[1024]; struct msn_data *md = ic->proto_data; - if( state ) - md->away_state = msn_away_state_by_name( state ) ? : - msn_away_state_list + 1; - else + if( state == NULL ) md->away_state = msn_away_state_list; + else if( ( md->away_state = msn_away_state_by_name( state ) ) == NULL ) + md->away_state = msn_away_state_list + 1; g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, md->away_state->code ); msn_write( ic, buf, strlen( buf ) ); |