diff options
author | Adam <Adam@anope.org> | 2013-01-03 13:20:10 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-03 13:20:10 -0500 |
commit | 23e303aaa2ffa3d66990e688b76380f403171f1e (patch) | |
tree | bf833f37ab80b20cd2c745175e83dd18faac1cd8 /include | |
parent | 098157dca8a4aecc18294cbc31cbe5ee95b35a94 (diff) |
Move enforcer checks on nick and logout to nickserv.cpp
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 */ |