]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/hooks.h
nickwatch: Implement hook for messages/notices.
[irc/quakenet/newserv.git] / core / hooks.h
index 90e2972c70f4a3ee36f22da82f5d380beb598821..d362cf61fd48a15eb10750f0c09019d3c1b3c481 100644 (file)
@@ -41,6 +41,8 @@
 #define HOOK_NICK_MODEOPER         307  /* Argument is void*[2] (nick, modes) */
 #define HOOK_NICK_KILL             308  /* Argument is void*[2] (nick, reason) */
 #define HOOK_NICK_MASKPRIVMSG      309  /* Argument is void*[3] (nick, target, message) ** NICK COULD BE NULL ** */
+#define HOOK_NICK_MODECHANGE       310  /* Argument is void*[2] (nick *, oldmodes) */
+#define HOOK_NICK_MESSAGE          311  /* Argument is void*[3] (nick *, message, isnotice) */
 
 #define HOOK_CHANNEL_BURST         400  /* Argument is channel pointer */
 #define HOOK_CHANNEL_CREATE        401  /* Argument is void*[2] (channel, nick) */
@@ -48,7 +50,7 @@
 #define HOOK_CHANNEL_PART          403  /* Argument is void*[3] (channel, nick, reason) */
 #define HOOK_CHANNEL_KICK          404  /* Argument is void*[4] (channel, kicked, kicker, reason) ** KICKER COULD BE NULL ***/
 #define HOOK_CHANNEL_TOPIC         405  /* Argument is void*[2] (channel, nick) ** NICK COULD BE NULL ** */
-#define HOOK_CHANNEL_MODECHANGE    406  /* Argument is void*[3] (channel, nick, flags) ** NICK COULD BE NULL ** */
+#define HOOK_CHANNEL_MODECHANGE    406  /* Argument is void*[3] (channel, nick, flags, oldchanmodes) ** NICK COULD BE NULL ** */
 #define HOOK_CHANNEL_BANSET        407  /* Argument is void*[2] (channel, nick) ** NICK COULD BE NULL **, ban will be first ban on channel */
 #define HOOK_CHANNEL_BANCLEAR      408  /* Argument is void*[2] (channel, nick) ** NICK COULD BE NULL **, ban will be gone.  XXX - could we care what the ban was? */
 #define HOOK_CHANNEL_OPPED         409  /* Argument is void*[3] (channel, nick, target) ** NICK COULD BE NULL ** */
 #define HOOK_TRUSTS_DELHOST        909 /* Argument is trusthost* */
 #define HOOK_TRUSTS_MODIFYGROUP    910 /* Argument is trustgroup* */
 #define HOOK_TRUSTS_LOSTHOST       911 /* Argument is trusthost* */
+#define HOOK_TRUSTS_MODIFYHOST     912 /* Argument is trusthost* */
 
-#define HOOK_TRUSTS_DBLOADED       1000
+#define HOOK_SIGNONTRACKER_HAVETIME 1100 /* Argument is nick* */
 
-#define HOOK_TRUSTS_DBLOADED       1000
+#define HOOK_WHOWAS_NEWRECORD      1200 /* Argument is void*[2] (whowas *, nick *) */
+#define HOOK_WHOWAS_LOSTRECORD     1201 /* Argument is whowas * */
 
 #define PRIORITY_DEFAULT           0