aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_channames.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-05-08 16:31:38 +0100
committerGravatar Sadie Powell2021-05-08 17:16:11 +0100
commit6a2f6331eddd5a89ff02643f72e93151dab15547 (patch)
tree0c8a672e4a461fe0d743a6d181b01c961d992df6 /src/modules/m_channames.cpp
parentConstify ChannelManager::Find. (diff)
Add ChannelManager::IsPrefix.
Diffstat (limited to 'src/modules/m_channames.cpp')
-rw-r--r--src/modules/m_channames.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp
index 353b50873..71c5efbb8 100644
--- a/src/modules/m_channames.cpp
+++ b/src/modules/m_channames.cpp
@@ -34,7 +34,7 @@ class NewIsChannelHandler
bool NewIsChannelHandler::Call(const std::string& channame)
{
- if (channame.empty() || channame.length() > ServerInstance->Config->Limits.MaxChannel || channame[0] != '#')
+ if (channame.empty() || channame.length() > ServerInstance->Config->Limits.MaxChannel || !ServerInstance->Channels.IsPrefix(channame[0]))
return false;
for (const auto& chr : channame)