diff mcabber/src/commands.c @ 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 bb1cc8902d0e
children 99d95d4ea806
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);