Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/settings.c @ 1735:5093b5ca1572
New modules loading scheme
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Thu, 04 Mar 2010 13:03:20 +0200 |
parents | 4e57d6275a86 |
children | 15e1f3957786 |
comparison
equal
deleted
inserted
replaced
1734:eae4a2637f2c | 1735:5093b5ca1572 |
---|---|
185 (strchr(line, '=') != NULL) || | 185 (strchr(line, '=') != NULL) || |
186 startswith(line, "pgp ", FALSE) || | 186 startswith(line, "pgp ", FALSE) || |
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, "module ", FALSE) || |
191 #endif | 191 #endif |
192 startswith(line, "status ", FALSE) || | 192 startswith(line, "status ", FALSE) || |
193 startswith(line, "otrpolicy", FALSE)) { | 193 startswith(line, "otrpolicy", FALSE)) { |
194 // Only accept a few "safe" commands | 194 // Only accept a few "safe" commands |
195 if (!runtime && | 195 if (!runtime && |
199 !startswith(line, "pgp ", FALSE) && | 199 !startswith(line, "pgp ", FALSE) && |
200 !startswith(line, "source ", FALSE) && | 200 !startswith(line, "source ", FALSE) && |
201 !startswith(line, "status ", FALSE) && | 201 !startswith(line, "status ", FALSE) && |
202 !startswith(line, "color ", FALSE) && | 202 !startswith(line, "color ", FALSE) && |
203 #ifdef MODULES_ENABLE | 203 #ifdef MODULES_ENABLE |
204 !startswith(line, "load ", FALSE) && | 204 !startswith(line, "module ", FALSE) && |
205 #endif | 205 #endif |
206 !startswith(line, "otrpolicy ", FALSE)) { | 206 !startswith(line, "otrpolicy ", FALSE)) { |
207 scr_LogPrint(LPRINT_LOGNORM, "Error in configuration file (l. %d): " | 207 scr_LogPrint(LPRINT_LOGNORM, "Error in configuration file (l. %d): " |
208 "this command can't be used here", ln); | 208 "this command can't be used here", ln); |
209 err++; | 209 err++; |