From ee44af8d04f23b4a16c9b377764f930d69e575f7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 27 Nov 2022 07:32:42 +0000 Subject: Refactor the internals of the oper system. - Allow overriding privileges from the blocks in the and blocks. - Separate oper types from oper accounts in the code. This enables moving some core stuff out of the config tag later. - Merge the config tags together to make a synthetic tag that can have getXXX called on it instead of using getConfig and then converting it. - Move the details of Have*Permission into the oper type class. - Improve oper events to allow modules to easily hook into the oper system. --- src/configparser.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/configparser.cpp') diff --git a/src/configparser.cpp b/src/configparser.cpp index 5e892fdfe..04ddd763b 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -750,18 +750,3 @@ ConfigTag::ConfigTag(const std::string& Name, const FilePosition& Source) , source(Source) { } - -OperInfo::OperInfo(const std::string& Name) - : name(Name) -{ -} - -std::string OperInfo::getConfig(const std::string& key) -{ - std::string rv; - if (type_block) - type_block->readString(key, rv); - if (oper_block) - oper_block->readString(key, rv); - return rv; -} -- cgit v1.3.1-10-gc9f91