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:
committed by
Sadie Powell
parent
cba1313a40
commit
95c8478ec5
@@ -1250,11 +1250,13 @@ struct IRCDMessageKick : IRCDMessage
|
||||
|
||||
void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) 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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user