summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:03:54 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:03:54 +0000
commit5fc268b7509f20cbf1243b99f2669033b93db00e (patch)
treed6b7c7387487843b6daf06c4a8fac2df6f3dcba5 /include/modules.h
parent5b62682223d7ba433df468ff39253b02cd580f34 (diff)
Added I_OnPreUserConnect, I_OnUserModeAdd, and I_OnUserModeAdd events
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2596 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h
index f7354f4e2..a82f5cd56 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -532,6 +532,16 @@ class CoreExport Module
*/
virtual EventReturn OnBotUnAssign(User *sender, ChannelInfo *ci) { return EVENT_CONTINUE; }
+ /** Called after a user has been introduced, but before any type
+ * of checking has been done (akills, defcon, s*lines, etc)
+ * return EVENT_STOP here to allow the user to get by untouched,
+ * or kill them then return EVENT_STOP to tell Anope the user no
+ * longer exists
+ * @param u The user
+ * @return EVENT_CONTINUE to let other modules decide, EVENT_STOP to stop processing
+ */
+ virtual EventReturn OnPreUserConnect(User *u) { return EVENT_CONTINUE; }
+
/** Called when a new user connects to the network.
* @param u The connecting user.
*/
@@ -949,6 +959,16 @@ class CoreExport Module
*/
virtual void OnUserModeUnset(User *u, UserModeName Name) { }
+ /** Called when a channel mode is introducted into Anope
+ * @param cm The mode
+ */
+ virtual void OnChannelModeAdd(ChannelMode *cm) { }
+
+ /** Called when a user mode is introducted into Anope
+ * @param um The mode
+ */
+ virtual void OnUserModeAdd(UserMode *um) { }
+
};
@@ -975,8 +995,8 @@ enum Implementation
I_OnDeleteHostCore, I_OnFindHostCore, I_OnInsertHostCore,
/* Users */
- I_OnUserConnect, I_OnUserNickChange, I_OnUserQuit, I_OnUserLogoff, I_OnPreJoinChannel, I_OnJoinChannel,
- I_OnPrePartChannel, I_OnPartChannel,
+ I_OnPreUserConnect, I_OnUserConnect, I_OnUserNickChange, I_OnUserQuit, I_OnUserLogoff, I_OnPreJoinChannel,
+ I_OnJoinChannel, I_OnPrePartChannel, I_OnPartChannel,
/* OperServ */
I_OnDefconLevel,
@@ -986,7 +1006,7 @@ enum Implementation
I_OnPreDatabaseExpire, I_OnDatabaseExpire, I_OnPreRestart, I_OnRestart, I_OnPreShutdown, I_OnShutdown, I_OnSignal,
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptInPlace, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
- I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset,
+ I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd,
I_END
};