From 6a2f6331eddd5a89ff02643f72e93151dab15547 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 8 May 2021 16:31:38 +0100 Subject: Add ChannelManager::IsPrefix. --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mode.cpp') 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())); -- cgit v1.3.1-10-gc9f91