diff options
| author | 2024-12-10 14:04:16 +0000 | |
|---|---|---|
| committer | 2024-12-10 14:04:16 +0000 | |
| commit | 5084eca9bae459d38fb509e56f7b0e67623e7f5e (patch) | |
| tree | a9cbdc216e05cb6f5e73600edadbd2cdc509077b | |
| parent | Write the pid file earlier to avoid a crash. (diff) | |
Allow explicitly disabling the ojoin/operprefix prefix characters.
| -rw-r--r-- | src/modules/m_ojoin.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_operprefix.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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<ModeHandler::Rank>::max(); } }; |
