diff options
| author | 2026-03-07 00:56:48 +0000 | |
|---|---|---|
| committer | 2026-03-07 13:52:26 +0000 | |
| commit | 4eed332cf684407caa72f9b2d7e439f235ba7f49 (patch) | |
| tree | bee6bbe03e9e311e66cbf6e5143b4b6934037965 /modules/remove.cpp | |
| parent | Add support for per-operator isupport. (diff) | |
Remove more missed v3 compatibility code.
Diffstat (limited to 'modules/remove.cpp')
| -rw-r--r-- | modules/remove.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/remove.cpp b/modules/remove.cpp index b19d1ed7a..0bcf897f5 100644 --- a/modules/remove.cpp +++ b/modules/remove.cpp @@ -53,10 +53,8 @@ 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. - 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]; + const std::string& channame = parameters[0]; + const std::string& username = parameters[1]; /* Look up the user we're meant to be removing from the channel */ User* target; |
