From 1d96baaf774eacd5eacd357500a01af693aad654 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Jun 2023 22:29:34 +0100 Subject: Remove OnPreChange{Host,RealName} events and deboolify methods. These have not ever been used as far as I can see. --- include/modules.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 16b0c1e27..70d37a1df 100644 --- a/include/modules.h +++ b/include/modules.h @@ -177,8 +177,6 @@ enum Implementation I_OnPostOperLogout, I_OnPostTopicChange, I_OnPreChangeConnectClass, - I_OnPreChangeHost, - I_OnPreChangeRealName, I_OnPreCommand, I_OnPreMode, I_OnPreOperLogin, @@ -839,22 +837,6 @@ public: */ virtual ModResult OnCheckPassword(const std::string& password, const std::string& passwordhash, const std::string& value); - /** Called whenever a change of a local users displayed host is attempted. - * Return 1 to deny the host change, or 0 to allow it. - * @param user The user whose host will be changed - * @param newhost The new hostname - * @return 1 to deny the host change, 0 to allow - */ - virtual ModResult OnPreChangeHost(LocalUser* user, const std::string& newhost); - - /** Called whenever a change of a local users real name is attempted. - * return MOD_RES_DENY to deny the name change, or MOD_RES_ALLOW to allow it. - * @param user The user whose real name will be changed - * @param newhost The new real name. - * @return MOD_RES_DENY to deny the real name change, MOD_RES_ALLOW to allow - */ - virtual ModResult OnPreChangeRealName(LocalUser* user, const std::string& newhost); - /** Called before a topic is changed. * Return 1 to deny the topic change, 0 to check details on the change, -1 to let it through with no checks * As with other 'pre' events, you should only ever block a local event. -- cgit v1.3.1-10-gc9f91