aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/postcommand.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_spanningtree/postcommand.cpp
parentConstify ChannelManager::Find. (diff)
Add ChannelManager::IsPrefix.
Diffstat (limited to 'src/modules/m_spanningtree/postcommand.cpp')
-rw-r--r--src/modules/m_spanningtree/postcommand.cpp2
1 files changed, 1 insertions, 1 deletions
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)