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.
--- 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);