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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user