comparison mcabber/src/settings.c @ 1068:6646d2ed7f74

Allow pgp commands in config file, update sample configuration file
author Mikael Berthe <mikael@lilotux.net>
date Sat, 02 Dec 2006 13:29:56 +0100
parents 230dca34dbea
children 9eaacc0ad3a2
comparison
equal deleted inserted replaced
1067:a5dc85fdebde 1068:6646d2ed7f74
147 147
148 // Ignore empty lines and comments 148 // Ignore empty lines and comments
149 if ((*line == '\n') || (*line == '\0') || (*line == '#')) 149 if ((*line == '\n') || (*line == '\0') || (*line == '#'))
150 continue; 150 continue;
151 151
152 if ((strchr(line, '=') != NULL)) { 152 if ((strchr(line, '=') != NULL) || !strncmp(line, "pgp ", strlen("pgp "))) {
153 // Only accept the set, alias and bind commands 153 // Only accept the set, alias, bind and pgp commands
154 if (strncmp(line, "set ", strlen("set ")) && 154 if (strncmp(line, "set ", strlen("set ")) &&
155 strncmp(line, "pgp ", strlen("pgp ")) &&
155 strncmp(line, "bind ", strlen("bind ")) && 156 strncmp(line, "bind ", strlen("bind ")) &&
156 strncmp(line, "alias ", strlen("alias "))) { 157 strncmp(line, "alias ", strlen("alias "))) {
157 scr_LogPrint(LPRINT_LOGNORM, 158 scr_LogPrint(LPRINT_LOGNORM,
158 "Error in configuration file (l. %d): bad command", ln); 159 "Error in configuration file (l. %d): bad command", ln);
159 err++; 160 err++;