From 3b51dfb1d611a874c3f1138d1c1ec1bb8984334c Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 18 Nov 2016 17:30:38 +0100 Subject: Add events which are fired when a service is added or deleted. --- include/modules.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 5244930d0..33b41e28f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -243,6 +243,7 @@ enum Implementation I_OnBuildNeighborList, I_OnGarbageCollect, I_OnSetConnectClass, I_OnText, I_OnPassCompare, I_OnNamesListItem, I_OnNumeric, I_OnPreRehash, I_OnModuleRehash, I_OnSendWhoLine, I_OnChangeIdent, I_OnSetUserIP, + I_OnServiceAdd, I_OnServiceDel, I_END }; @@ -1006,6 +1007,16 @@ class CoreExport Module : public classbase, public usecountbase * @param user The user whose IP is being set */ virtual void OnSetUserIP(LocalUser* user); + + /** Called whenever a ServiceProvider is registered. + * @param service ServiceProvider being registered. + */ + virtual void OnServiceAdd(ServiceProvider& service); + + /** Called whenever a ServiceProvider is unregistered. + * @param service ServiceProvider being unregistered. + */ + virtual void OnServiceDel(ServiceProvider& service); }; /** A list of modules -- cgit v1.2.3