summaryrefslogtreecommitdiff
path: root/src/users.cpp
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 /src/users.cpp
parent10b17a0e9f948b1dd4f69c9af1f55f712664d155 (diff)
Rename OnChangeLocalUserHost to OnPreChangeHost for consistency.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index e05ef1853..e17c8cd79 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1004,10 +1004,11 @@ bool User::ChangeDisplayedHost(const std::string& shost)
if (GetDisplayedHost() == shost)
return true;
- if (IS_LOCAL(this))
+ LocalUser* luser = IS_LOCAL(this);
+ if (luser)
{
ModResult MOD_RESULT;
- FIRST_MOD_RESULT(OnChangeLocalUserHost, MOD_RESULT, (IS_LOCAL(this),shost));
+ FIRST_MOD_RESULT(OnPreChangeHost, MOD_RESULT, (luser, shost));
if (MOD_RESULT == MOD_RES_DENY)
return false;
}