comparison mcabber/mcabber/settings.c @ 1736:15e1f3957786

Misc. small style changes (I.e. line length < 80 whenever possible)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 06 Mar 2010 19:21:05 +0100
parents 5093b5ca1572
children d80a9e32ab1a
comparison
equal deleted inserted replaced
1735:5093b5ca1572 1736:15e1f3957786
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, "module ", 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, "module ", 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++;