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_remove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_remove.cpp') diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index ef9cdb789..5a570b3ad 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -61,7 +61,7 @@ class RemoveBase : public Command std::string reason; // If the command is a /REMOVE then detect the parameter order - bool neworder = ((fpart) || (parameters[0][0] == '#')); + bool neworder = (fpart || ServerInstance->Channels.IsPrefix(parameters[0][0])); /* Set these to the parameters needed, the new version of this module switches it's parameters around * supplying a new command with the new order while keeping the old /remove with the older order. -- cgit v1.3.1-10-gc9f91