1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Fix the handling of kick messages with InspIRCd v3.

This commit is contained in:
Matt Schatz
2020-01-04 04:22:56 -07:00
committed by Sadie Powell
parent cba1313a40
commit 95c8478ec5
+4 -2
View File
@@ -1250,11 +1250,13 @@ struct IRCDMessageKick : IRCDMessage
void Run(MessageSource &source, const std::vector<Anope::string> &params) anope_override
{
// Received: :715AAAAAA KICK #chan 715AAAAAD :reason
// Received: :715AAAAAA KICK #chan 628AAAAAA 4 :reason
Channel *c = Channel::Find(params[0]);
if (c)
if (!c)
return;
const Anope::string &reason = params.size() > 3 ? params[3] : "";
const Anope::string &reason = params.size() > 3 ? params[3] : params[2];
c->KickInternal(source, params[1], reason);
}
};