summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
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 */