diff options
| author | 2021-05-08 16:31:38 +0100 | |
|---|---|---|
| committer | 2021-05-08 17:16:11 +0100 | |
| commit | 6a2f6331eddd5a89ff02643f72e93151dab15547 (patch) | |
| tree | 0c8a672e4a461fe0d743a6d181b01c961d992df6 /src/mode.cpp | |
| parent | Constify ChannelManager::Find. (diff) | |
Add ChannelManager::IsPrefix.
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index cdfc4b8d0..ea3e64eb6 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -585,7 +585,7 @@ void ModeParser::AddMode(ModeHandler* mh) PrefixMode* pm = mh->IsPrefixMode(); if (pm) { - if ((pm->GetPrefix() > 126) || (pm->GetPrefix() == ',') || (pm->GetPrefix() == ':') || (pm->GetPrefix() == '#')) + if ((pm->GetPrefix() > 126) || (pm->GetPrefix() == ',') || (pm->GetPrefix() == ':') || ServerInstance->Channels.IsPrefix(pm->GetPrefix())) throw ModuleException(InspIRCd::Format("Mode prefix for %s is invalid: %c", mh->name.c_str(), pm->GetPrefix())); |
