1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 18:53:12 +02:00

Somehow the kick handler got lost in the confusion. Send the topic time with ftopic on inspircd not the current time. Removed some unneeded protocol functions

This commit is contained in:
Adam
2012-10-02 21:21:37 -04:00
parent 93698f0d61
commit 7042223f2e
10 changed files with 34 additions and 22 deletions
+19
View File
@@ -94,6 +94,25 @@ bool CoreIRCDMessageJoin::Run(MessageSource &source, const std::vector<Anope::st
return true;
}
bool CoreIRCDMessageKick::Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &channel = params[0];
const Anope::string &users = params[1];
const Anope::string &reason = params.size() > 2 ? params[2] : "";
Channel *c = findchan(channel);
if (!c)
return true;
Anope::string user;
commasepstream sep(users);
while (sep.GetToken(user))
c->KickInternal(source, user, reason);
return true;
}
bool CoreIRCDMessageKill::Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = finduser(params[0]);