1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 10:03:14 +02:00

Change User::SetModesInternal to take a split mode change.

This commit is contained in:
Sadie Powell
2024-10-02 15:00:58 +01:00
parent 94dbb19593
commit 2f74513246
7 changed files with 41 additions and 32 deletions
+1 -5
View File
@@ -214,10 +214,6 @@ void Kill::Run(MessageSource &source, const std::vector<Anope::string> &params,
void Message::Mode::Run(MessageSource &source, const std::vector<Anope::string> &params, 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() });
}
}