1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 23:13:13 +02:00

Add support for hashing operator passwords in the config.

Closes #327.
This commit is contained in:
Sadie Powell
2025-04-24 12:46:58 +01:00
parent 1630ccedb1
commit fad0a4a0e8
4 changed files with 29 additions and 1 deletions
+2
View File
@@ -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;