diff options
| author | 2018-08-14 00:22:59 +0100 | |
|---|---|---|
| committer | 2018-08-14 00:22:59 +0100 | |
| commit | f7a115884f91d58d5699e38f4e25fdaef65a003d (patch) | |
| tree | 2c4cf48dd143d2a919b6a906ed822bf2783fbdcd /src/users.cpp | |
| parent | Remove the OnInfo event. (diff) | |
Rename OnChangeLocalUserHost to OnPreChangeHost for consistency.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 5 |
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; } |
