aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-29 22:29:34 +0100
committerGravatar Sadie Powell2023-06-29 22:52:07 +0100
commit1d96baaf774eacd5eacd357500a01af693aad654 (patch)
tree8c2e960bba6dc28f9c381c27a9c38524fda56946 /include/modules.h
parentFix remote users on legacy servers not having a real username. (diff)
Remove OnPreChange{Host,RealName} events and deboolify methods.
These have not ever been used as far as I can see.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h18
1 files changed, 0 insertions, 18 deletions
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.