Mercurial > hg
changeset 1428:5667048423db
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.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 19 Feb 2008 22:56:18 +0100 |
parents | a8eb9aba2ed2 |
children | 99d95d4ea806 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);