diff options
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() }); } } |