1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-25 05:56:38 +02:00

Fix explicit password method in .conf no longer working, eg: password "....." { md5; };

This commit is contained in:
Bram Matthys
2015-09-07 16:44:08 +02:00
parent 177f102d26
commit ada38f7ac3
+12
View File
@@ -3810,6 +3810,18 @@ int _test_oper(ConfigFile *conf, ConfigEntry *ce)
if (cep->ce_vardata || cep->ce_entries)
has_mask = 1;
}
else if (!strcmp(cep->ce_varname, "password"))
{
if (has_password)
{
config_warn_duplicate(cep->ce_fileptr->cf_filename,
cep->ce_varlinenum, "oper::password");
continue;
}
has_password = 1;
if (Auth_CheckError(cep) < 0)
errors++;
}
else
{
config_error_unknown(cep->ce_fileptr->cf_filename,