aboutsummaryrefslogtreecommitdiffstats
path: root/modules/remove.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-10-22 10:56:50 +0100
committerGravatar Sadie Powell2025-10-22 10:57:59 +0100
commit4c9920b88a10f85353ac70408b20f2defd7f21b1 (patch)
tree271bc256d80027a4f00fdf174cbb981934121858 /modules/remove.cpp
parentMerge branch 'insp4' into master. (diff)
parentDefault <dnsbl:name> to the domain of the DNSBL. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/remove.cpp')
-rw-r--r--modules/remove.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/remove.cpp b/modules/remove.cpp
index c84444356..cc75961f7 100644
--- a/modules/remove.cpp
+++ b/modules/remove.cpp
@@ -54,7 +54,7 @@ public:
CmdResult Handle(User* user, const CommandBase::Params& parameters) override
{
// Keep compatibility with v3 servers by allowing them to send removes with the old order.
- bool neworder = !IS_LOCAL(user) && ServerInstance->Channels.IsPrefix(parameters[0][0]);
+ const auto neworder = IS_LOCAL(user) || ServerInstance->Channels.IsPrefix(parameters[0][0]);
const std::string& channame = parameters[neworder ? 0 : 1];
const std::string& username = parameters[neworder ? 1 : 0];