From 5084eca9bae459d38fb509e56f7b0e67623e7f5e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Dec 2024 14:04:16 +0000 Subject: Allow explicitly disabling the ojoin/operprefix prefix characters. --- src/modules/m_ojoin.cpp | 2 +- src/modules/m_operprefix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index c860c88f5..217aa9ab4 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -115,7 +115,7 @@ public: ModuleOjoin() : Module(VF_VENDOR, "Adds the /OJOIN command which allows server operators to join a channel and receive the server operator-only Y (official-join) channel prefix mode.") - , np(this, ServerInstance->Config->ConfValue("ojoin")->getCharacter("prefix")) + , np(this, ServerInstance->Config->ConfValue("ojoin")->getCharacter("prefix", '\0', true)) , mycommand(this, np) { } diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index e1258ede0..272802e7f 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -38,7 +38,7 @@ public: OperPrefixMode(Module* Creator) : PrefixMode(Creator, "operprefix", 'y', OPERPREFIX_VALUE) { - prefix = ServerInstance->Config->ConfValue("operprefix")->getCharacter("prefix", '!'); + prefix = ServerInstance->Config->ConfValue("operprefix")->getCharacter("prefix", '!', true); ranktoset = ranktounset = std::numeric_limits::max(); } }; -- cgit v1.3.1-10-gc9f91