Allow explicitly disabling the ojoin/operprefix prefix characters.

This commit is contained in:
Sadie Powell 2024-12-10 14:04:16 +00:00
parent 173f88f084
commit 5084eca9ba
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{
}

View File

@ -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();
}
};