diff --git a/include/modules.h b/include/modules.h index bd7a296b4..722acc878 100644 --- a/include/modules.h +++ b/include/modules.h @@ -731,6 +731,7 @@ ModDataInfo *findmoddata_byname(char *name, ModDataType type); #define HOOKTYPE_CAN_SEND_SECURE 78 #define HOOKTYPE_CHANNEL_SYNCED 79 #define HOOKTYPE_CAN_SAJOIN 80 +#define HOOKTYPE_WHOIS 81 /* Hook return values */ #define HOOK_CONTINUE 0 diff --git a/src/modules/m_whois.c b/src/modules/m_whois.c index 27029a52d..0c49a469a 100644 --- a/src/modules/m_whois.c +++ b/src/modules/m_whois.c @@ -324,6 +324,8 @@ DLLFUNC int m_whois(aClient *cptr, aClient *sptr, int parc, char *parv[]) if (acptr->umodes & UMODE_SECURE) sendto_one(sptr, rpl_str(RPL_WHOISSECURE), me.name, parv[0], name, "is using a Secure Connection"); + + RunHook2(HOOKTYPE_WHOIS, sptr, acptr); if (!BadPtr(user->swhois) && !hideoper) sendto_one(sptr, ":%s %d %s %s :%s",