diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-24 12:46:58 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-24 12:46:58 +0100 |
commit | fad0a4a0e888b8025b0ae4e456085e28415b0453 (patch) | |
tree | 98bf9f117eaed9c0cad6af2dd049cf55c2ef0dd7 /src | |
parent | 1630ccedb11842dbe56d8ce2b9e9f54a53b01b8c (diff) |
Add support for hashing operator passwords in the config.
Closes #327.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp index 1a1c91cc1..a356bcd80 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -300,6 +300,7 @@ Conf::Conf() : Block("") const Anope::string &nname = oper.Get<const Anope::string>("name"), &type = oper.Get<const Anope::string>("type"), &password = oper.Get<const Anope::string>("password"), + &password_hash = oper.Get<const Anope::string>("password_hash"), &certfp = oper.Get<const Anope::string>("certfp"), &host = oper.Get<const Anope::string>("host"), &vhost = oper.Get<const Anope::string>("vhost"); @@ -320,6 +321,7 @@ Conf::Conf() : Block("") auto *o = new Oper(nname, ot); o->require_oper = require_oper; o->password = password; + o->password_hash = password_hash; spacesepstream(certfp).GetTokens(o->certfp); spacesepstream(host).GetTokens(o->hosts); o->vhost = vhost; |