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/modules/m_spanningtree/postcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/postcommand.cpp') diff --git a/src/modules/m_spanningtree/postcommand.cpp b/src/modules/m_spanningtree/postcommand.cpp index dc75d054c..195a8b558 100644 --- a/src/modules/m_spanningtree/postcommand.cpp +++ b/src/modules/m_spanningtree/postcommand.cpp @@ -95,7 +95,7 @@ void SpanningTreeUtilities::RouteCommand(TreeServer* origin, CommandBase* thiscm pfx = dest[0]; dest.erase(dest.begin()); } - if (dest[0] == '#') + if (ServerInstance->Channels.IsPrefix(dest[0])) { Channel* c = ServerInstance->Channels.Find(dest); if (!c) -- cgit v1.3.1-10-gc9f91