diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-11-18 17:30:38 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-11-16 14:15:25 +0000 |
commit | 3b51dfb1d611a874c3f1138d1c1ec1bb8984334c (patch) | |
tree | 83e33012964806048fc9f1b69056c24f4246d8d0 /include | |
parent | 5287af979e5abffb2cfcdadb9a7663b42a5c43e5 (diff) |
Add events which are fired when a service is added or deleted.
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |