From 2f745132461080b4773e878d0cafb68de99a7e67 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 2 Oct 2024 15:00:58 +0100 Subject: Change User::SetModesInternal to take a split mode change. --- src/messages.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/messages.cpp') 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 ¶ms, void Message::Mode::Run(MessageSource &source, const std::vector ¶ms, const Anope::map &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 User *u = User::Find(params[0]); if (u) - u->SetModesInternal(source, buf.substr(1)); + u->SetModesInternal(source, params[1], { params.begin() + 2, params.end() }); } } -- cgit