comparison mcabber/mcabber/commands.c @ 1732:4e57d6275a86

Allow status command in the configuration file
author Mikael Berthe <mikael@lilotux.net>
date Sun, 28 Feb 2010 21:25:18 +0100
parents e6e89b1d7831
children 5093b5ca1572
comparison
equal deleted inserted replaced
1731:4fbfae993c24 1732:4e57d6275a86
886 char **paramlst; 886 char **paramlst;
887 char *status; 887 char *status;
888 char *msg; 888 char *msg;
889 enum imstatus st; 889 enum imstatus st;
890 890
891 if (!xmpp_is_online()) { 891 if (!xmpp_is_online())
892 scr_LogPrint(LPRINT_NORMAL, "You are not connected."); 892 scr_LogPrint(LPRINT_NORMAL, "You are currently not connected...");
893 return; 893 // We do not return now, so that the status is memorized and used later...
894 }
895 894
896 // It makes sense to reset autoaway before changing the status 895 // It makes sense to reset autoaway before changing the status
897 // (esp. for FIFO or remote commands) or the behaviour could be 896 // (esp. for FIFO or remote commands) or the behaviour could be
898 // unexpected... 897 // unexpected...
899 if (!recipient) 898 if (!recipient)