From f7a115884f91d58d5699e38f4e25fdaef65a003d Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 14 Aug 2018 00:22:59 +0100 Subject: Rename OnChangeLocalUserHost to OnPreChangeHost for consistency. --- src/users.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') 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; } -- cgit v1.3.1-10-gc9f91