mirror of
https://github.com/anope/anope.git
synced 2026-07-03 03:43:12 +02:00
Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in.
This commit is contained in:
@@ -1098,8 +1098,7 @@ class DBOld : public Module
|
||||
Implementation i[] = { I_OnLoadDatabase, I_OnUplinkSync };
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ConfigReader conf;
|
||||
hashm = conf.ReadValue("db_old", "hash", "", 0);
|
||||
hashm = Config->GetModule(this)->Get<const Anope::string &>("hash");
|
||||
|
||||
if (hashm != "md5" && hashm != "oldmd5" && hashm != "sha1" && hashm != "plain" && hashm != "sha256")
|
||||
throw ModuleException("Invalid hash method");
|
||||
|
||||
Reference in New Issue
Block a user