comparison 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
comparison
equal deleted inserted replaced
1427:a8eb9aba2ed2 1428:5667048423db
798 798
799 if (!jb_getonline()) { 799 if (!jb_getonline()) {
800 scr_LogPrint(LPRINT_NORMAL, "You are not connected."); 800 scr_LogPrint(LPRINT_NORMAL, "You are not connected.");
801 return; 801 return;
802 } 802 }
803
804 // It makes sense to reset autoaway before changing the status
805 // (esp. for FIFO or remote commands) or the behaviour could be
806 // unexpected...
807 scr_CheckAutoAway(TRUE);
803 808
804 paramlst = split_arg(arg, 2, 1); // status, message 809 paramlst = split_arg(arg, 2, 1); // status, message
805 status = *paramlst; 810 status = *paramlst;
806 msg = *(paramlst+1); 811 msg = *(paramlst+1);
807 812