diff mcabber/mcabber/settings.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/settings.c	Sun Feb 28 18:50:30 2010 +0100
+++ b/mcabber/mcabber/settings.c	Sun Feb 28 21:25:18 2010 +0100
@@ -189,6 +189,7 @@
 #ifdef MODULES_ENABLE
         startswith(line, "load ", FALSE)   ||
 #endif
+        startswith(line, "status ", FALSE) ||
         startswith(line, "otrpolicy", FALSE)) {
       // Only accept a few "safe" commands
       if (!runtime &&
@@ -197,6 +198,7 @@
           !startswith(line, "alias ", FALSE)  &&
           !startswith(line, "pgp ", FALSE)    &&
           !startswith(line, "source ", FALSE) &&
+          !startswith(line, "status ", FALSE) &&
           !startswith(line, "color ", FALSE)  &&
 #ifdef MODULES_ENABLE
           !startswith(line, "load ", FALSE)   &&