From 43cc8b48754f9d6584d310fbdd4d87841b5ebc75 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Mon, 16 Feb 2004 10:58:44 +0000 Subject: [PATCH] Renamed HOOKTYPE_LOCAL_TOPIC to HOOKTYPE_TOPIC and made it actually work. --- Changes | 1 + include/modules.h | 2 +- src/channel.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 478cb3f15..cb761086e 100644 --- a/Changes +++ b/Changes @@ -2872,3 +2872,4 @@ seen. gmtime warning still there (#0001540) reported by penna and DukePyrolator. - Added HOOKTYPE_UMODE_CHANGE (sptr, oldflags, newflags) - this may not be accurate as umode changes are done manually many places. +- Renamed HOOKTYPE_LOCAL_TOPIC to HOOKTYPE_TOPIC and made it actually work. diff --git a/include/modules.h b/include/modules.h index b12b81456..5b2162ef0 100644 --- a/include/modules.h +++ b/include/modules.h @@ -514,7 +514,7 @@ int CallCmdoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, ch #define HOOKTYPE_LOCAL_PART 19 #define HOOKTYPE_LOCAL_KICK 20 #define HOOKTYPE_LOCAL_CHANMODE 21 -#define HOOKTYPE_LOCAL_TOPIC 22 +#define HOOKTYPE_TOPIC 22 #define HOOKTYPE_LOCAL_OPER 23 #define HOOKTYPE_UNKUSER_QUIT 24 #define HOOKTYPE_LOCAL_PASS 25 diff --git a/src/channel.c b/src/channel.c index dc8623795..48d17927e 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4602,6 +4602,7 @@ CMD_FUNC(m_topic) #else strncpyzt(chptr->topic_nick, tnick, nicKlen + 1); #endif + RunHook4(HOOKTYPE_TOPIC, cptr, sptr, chptr, topic); if (ttime && IsServer(cptr)) chptr->topic_time = ttime; else