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:
+1
-5
@@ -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() });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user