Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/settings.c @ 1519:ac5a2c262098
Cosmetics
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 27 Sep 2008 22:44:02 +0200 |
parents | 366ef500c522 |
children | bff9633e38ee |
comparison
equal
deleted
inserted
replaced
1518:63dc211a4c1a | 1519:ac5a2c262098 |
---|---|
180 (strchr(line, '=') != NULL) || | 180 (strchr(line, '=') != NULL) || |
181 startswith(line, "pgp ", FALSE) || | 181 startswith(line, "pgp ", FALSE) || |
182 startswith(line, "source ", FALSE) || | 182 startswith(line, "source ", FALSE) || |
183 startswith(line, "color ", FALSE) || | 183 startswith(line, "color ", FALSE) || |
184 startswith(line, "otrpolicy", FALSE)) { | 184 startswith(line, "otrpolicy", FALSE)) { |
185 // Only accept the set, alias, bind, pgp and source commands | 185 // Only accept a few "safe" commands |
186 if (!runtime && | 186 if (!runtime && |
187 !startswith(line, "set ", FALSE) && | 187 !startswith(line, "set ", FALSE) && |
188 !startswith(line, "bind ", FALSE) && | 188 !startswith(line, "bind ", FALSE) && |
189 !startswith(line, "alias ", FALSE) && | 189 !startswith(line, "alias ", FALSE) && |
190 !startswith(line, "pgp ", FALSE) && | 190 !startswith(line, "pgp ", FALSE) && |