diff options
| author | 2021-05-08 16:31:38 +0100 | |
|---|---|---|
| committer | 2021-05-08 17:16:11 +0100 | |
| commit | 6a2f6331eddd5a89ff02643f72e93151dab15547 (patch) | |
| tree | 0c8a672e4a461fe0d743a6d181b01c961d992df6 /src/modules/m_remove.cpp | |
| parent | Constify ChannelManager::Find. (diff) | |
Add ChannelManager::IsPrefix.
Diffstat (limited to 'src/modules/m_remove.cpp')
| -rw-r--r-- | src/modules/m_remove.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
