From fad0a4a0e888b8025b0ae4e456085e28415b0453 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 24 Apr 2025 12:46:58 +0100 Subject: Add support for hashing operator passwords in the config. Closes #327. --- src/config.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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("name"), &type = oper.Get("type"), &password = oper.Get("password"), + &password_hash = oper.Get("password_hash"), &certfp = oper.Get("certfp"), &host = oper.Get("host"), &vhost = oper.Get("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; -- cgit