Skip to content

Commit

Permalink
Update to 1.0.0 - First release!
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
genius3000 committed Dec 23, 2018
1 parent 05d453c commit 45ac5bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cs_akick_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 45ac5bd

Please sign in to comment.