From 45ac5bd70bde0d57cbadf8efb02fea01e1781f84 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Sat, 22 Dec 2018 22:21:16 -0700 Subject: [PATCH] Update to 1.0.0 - First release! * Tested a bit and it seems to work as expected. * Found a way to catch ident changes, not ideal but it works. Closes #3 Resolves #5 --- cs_akick_check.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cs_akick_check.cpp b/cs_akick_check.cpp index e02ea38..3452ff6 100644 --- a/cs_akick_check.cpp +++ b/cs_akick_check.cpp @@ -26,7 +26,7 @@ class CSAkickCheck : public Module throw ModuleException("Requires version 2.0.x of Anope."); this->SetAuthor("genius3000"); - this->SetVersion("0.9.0"); + this->SetVersion("1.0.0"); } void OnUplinkSync(Server *) anope_override @@ -57,6 +57,15 @@ class CSAkickCheck : public Module } } + // Hacky way to catch IDENT changes. + void OnLog(Log *l) anope_override + { + if (!Me || !Me->IsSynced() || l->type != LOG_USER || l->u == NULL || l->category != "ident") + return; + + CheckAkicks(l->u); + } + void OnNickGroup(User *u, NickAlias *) anope_override { CheckAkicks(u);