From 7042223f2eb486e8d1aec9fd176d416096a6e927 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 2 Oct 2012 21:21:37 -0400 Subject: 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 --- src/messages.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src') diff --git a/src/messages.cpp b/src/messages.cpp index 2faa1cbb1..784b482cc 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -94,6 +94,25 @@ bool CoreIRCDMessageJoin::Run(MessageSource &source, const std::vector ¶ms) 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 ¶ms) anope_override { User *u = finduser(params[0]); -- cgit