From aac644de3da4fe76dc912f6c8ef451c2dc75509c Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 16 Oct 2017 04:14:37 +0100 Subject: Clean up the command disabling logic. - Read the disabled command list in ApplyDisabledCommands() instead of storing it in a global which is only accessed on rehash. - Write debug messages to the log when disabling commands. - Use irc::spacesepstream instead of std::stringstream. --- include/configreader.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include/configreader.h') diff --git a/include/configreader.h b/include/configreader.h index a98736640..001d4a92a 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -311,12 +311,6 @@ class CoreExport ServerConfig */ bool DisabledDontExist; - /** This variable contains a space-seperated list - * of commands which are disabled by the - * administrator of the server for non-opers. - */ - std::string DisabledCommands; - /** This variable identifies which usermodes have been diabled. */ std::bitset<64> DisabledUModes; @@ -484,7 +478,8 @@ class CoreExport ServerConfig void Fill(); - bool ApplyDisabledCommands(const std::string& data); + /** Disables the commands specified in . */ + bool ApplyDisabledCommands(); /** Escapes a value for storage in a configuration key. * @param str The string to escape. -- cgit v1.2.3