# HG changeset patch # User Mikael Berthe # Date 1203458178 -3600 # Node ID 5667048423db969aa86a8dffac10a5d656adc842 # Parent a8eb9aba2ed27bd129d5d374f375145b2f9da3f1 Reset auto-away before changing the status Without this check some strange things can happen when the status is modified by a FIFO or a remote command, because the previous status & message will be restored. diff -r a8eb9aba2ed2 -r 5667048423db mcabber/src/commands.c --- a/mcabber/src/commands.c Tue Feb 19 22:24:25 2008 +0100 +++ b/mcabber/src/commands.c Tue Feb 19 22:56:18 2008 +0100 @@ -801,6 +801,11 @@ return; } + // It makes sense to reset autoaway before changing the status + // (esp. for FIFO or remote commands) or the behaviour could be + // unexpected... + scr_CheckAutoAway(TRUE); + paramlst = split_arg(arg, 2, 1); // status, message status = *paramlst; msg = *(paramlst+1);