Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1731:4fbfae993c24 | 1732:4e57d6275a86 |
---|---|
187 startswith(line, "source ", FALSE) || | 187 startswith(line, "source ", FALSE) || |
188 startswith(line, "color ", FALSE) || | 188 startswith(line, "color ", FALSE) || |
189 #ifdef MODULES_ENABLE | 189 #ifdef MODULES_ENABLE |
190 startswith(line, "load ", FALSE) || | 190 startswith(line, "load ", FALSE) || |
191 #endif | 191 #endif |
192 startswith(line, "status ", FALSE) || | |
192 startswith(line, "otrpolicy", FALSE)) { | 193 startswith(line, "otrpolicy", FALSE)) { |
193 // Only accept a few "safe" commands | 194 // Only accept a few "safe" commands |
194 if (!runtime && | 195 if (!runtime && |
195 !startswith(line, "set ", FALSE) && | 196 !startswith(line, "set ", FALSE) && |
196 !startswith(line, "bind ", FALSE) && | 197 !startswith(line, "bind ", FALSE) && |
197 !startswith(line, "alias ", FALSE) && | 198 !startswith(line, "alias ", FALSE) && |
198 !startswith(line, "pgp ", FALSE) && | 199 !startswith(line, "pgp ", FALSE) && |
199 !startswith(line, "source ", FALSE) && | 200 !startswith(line, "source ", FALSE) && |
201 !startswith(line, "status ", FALSE) && | |
200 !startswith(line, "color ", FALSE) && | 202 !startswith(line, "color ", FALSE) && |
201 #ifdef MODULES_ENABLE | 203 #ifdef MODULES_ENABLE |
202 !startswith(line, "load ", FALSE) && | 204 !startswith(line, "load ", FALSE) && |
203 #endif | 205 #endif |
204 !startswith(line, "otrpolicy ", FALSE)) { | 206 !startswith(line, "otrpolicy ", FALSE)) { |