diff options
author | Sadie Powell <sadie@witchery.services> | 2024-10-02 15:00:58 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-10-02 23:54:36 +0100 |
commit | 2f745132461080b4773e878d0cafb68de99a7e67 (patch) | |
tree | 01aba256ac36c6404241370de1bb67d8b9d1cd94 /src/messages.cpp | |
parent | 94dbb1959308116c4edf411eb5e88d7ad871286d (diff) |
Change User::SetModesInternal to take a split mode change.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 9e6f6ebb0..b21a27f37 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -214,10 +214,6 @@ void Kill::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, void Message::Mode::Run(MessageSource &source, const std::vector<Anope::string> ¶ms, const Anope::map<Anope::string> &tags) { - Anope::string buf; - for (unsigned i = 1; i < params.size(); ++i) - buf += " " + params[i]; - if (IRCD->IsChannelValid(params[0])) { Channel *c = Channel::Find(params[0]); @@ -230,7 +226,7 @@ void Message::Mode::Run(MessageSource &source, const std::vector<Anope::string> User *u = User::Find(params[0]); if (u) - u->SetModesInternal(source, buf.substr(1)); + u->SetModesInternal(source, params[1], { params.begin() + 2, params.end() }); } } |