From 23e303aaa2ffa3d66990e688b76380f403171f1e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 3 Jan 2013 13:20:10 -0500 Subject: Move enforcer checks on nick and logout to nickserv.cpp --- include/modules.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index e24bbf69a..8bf46505a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -536,10 +536,12 @@ class CoreExport Module : public Extensible */ virtual void OnUserQuit(User *u, const Anope::string &msg) { } - /** Called when a user disconnects + /** Called when a user disconnects, before and after being internally removed from + * all lists (channels, user list, etc) * @param u The user */ - virtual void OnUserLogoff(User *u) { } + virtual void OnPreUserLogoff(User *u) { } + virtual void OnPostUserLogoff(User *u) { } /** Called when a new bot is made * @param bi The bot @@ -994,7 +996,7 @@ enum Implementation I_OnMemoSend, I_OnMemoDel, /* Users */ - I_OnUserConnect, I_OnUserNickChange, I_OnUserQuit, I_OnUserLogoff, I_OnPreJoinChannel, + I_OnUserConnect, I_OnUserNickChange, I_OnUserQuit, I_OnPreUserLogoff, I_OnPostUserLogoff, I_OnPreJoinChannel, I_OnJoinChannel, I_OnPrePartChannel, I_OnPartChannel, I_OnLeaveChannel, I_OnFingerprint, I_OnUserAway, /* OperServ */ -- cgit