summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-14 00:22:59 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-14 00:22:59 +0100
commitf7a115884f91d58d5699e38f4e25fdaef65a003d (patch)
tree2c4cf48dd143d2a919b6a906ed822bf2783fbdcd /include/modules.h
parent10b17a0e9f948b1dd4f69c9af1f55f712664d155 (diff)
Rename OnChangeLocalUserHost to OnPreChangeHost for consistency.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 4120f2cc9..3cd0179d2 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -220,7 +220,7 @@ enum Implementation
I_OnUserPostNick, I_OnPreMode, I_On005Numeric, I_OnKill, I_OnLoadModule,
I_OnUnloadModule, I_OnBackgroundTimer, I_OnPreCommand, I_OnCheckReady, I_OnCheckInvite,
I_OnRawMode, I_OnCheckKey, I_OnCheckLimit, I_OnCheckBan, I_OnCheckChannelBan, I_OnExtBanCheck,
- I_OnChangeLocalUserHost, I_OnPreTopicChange,
+ I_OnPreChangeHost, I_OnPreTopicChange,
I_OnPostTopicChange, I_OnPostConnect, I_OnPostDeoper,
I_OnPreChangeRealName, I_OnUserRegister, I_OnChannelPreDelete, I_OnChannelDelete,
I_OnPostOper, I_OnPostCommand, I_OnPostJoin,
@@ -824,7 +824,7 @@ class CoreExport Module : public classbase, public usecountbase
* @param newhost The new hostname
* @return 1 to deny the host change, 0 to allow
*/
- virtual ModResult OnChangeLocalUserHost(LocalUser* user, const std::string &newhost);
+ 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.