summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Schatz <genius3000@g3k.solutions>2020-01-04 04:22:56 -0700
committerSadie Powell <petpow@saberuk.com>2020-01-04 12:40:20 +0100
commit95c8478ec592008e870a0df65a178b6567e7cf5a (patch)
treec4c1f40cb92c02851c4278eaf824bb869afa56c4
parentcba1313a40f84b8a40cb8cd0309bf3617833ecfc (diff)
Fix the handling of kick messages with InspIRCd v3.
-rw-r--r--modules/protocol/inspircd3.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp
index 58687f2d2..4b0495055 100644
--- a/modules/protocol/inspircd3.cpp
+++ b/modules/protocol/inspircd3.cpp
@@ -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);
}
};