diff 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
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c	Sun Feb 28 18:50:30 2010 +0100
+++ b/mcabber/mcabber/commands.c	Sun Feb 28 21:25:18 2010 +0100
@@ -888,10 +888,9 @@
   char *msg;
   enum imstatus st;
 
-  if (!xmpp_is_online()) {
-    scr_LogPrint(LPRINT_NORMAL, "You are not connected.");
-    return;
-  }
+  if (!xmpp_is_online())
+    scr_LogPrint(LPRINT_NORMAL, "You are currently not connected...");
+  // We do not return now, so that the status is memorized and used later...
 
   // It makes sense to reset autoaway before changing the status
   // (esp. for FIFO or remote commands) or the behaviour could be