diff options
| author | 2024-08-31 16:21:09 +0100 | |
|---|---|---|
| committer | 2024-08-31 16:21:09 +0100 | |
| commit | f6da60b3f4e4bd05671cc3ad03200458a426b8e9 (patch) | |
| tree | 166ce25ba4204d8702206b1129d68b542b62476b /src/usermanager.cpp | |
| parent | Minor performance improvement to ProcessColors. (diff) | |
Normalise the case of MOD_RESULT variables.
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index b62f7e262..46bf5922b 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -259,9 +259,9 @@ void UserManager::QuitUser(User* user, const std::string& quitmessage, const std LocalUser* const localuser = IS_LOCAL(user); if (localuser) { - ModResult MOD_RESULT; - FIRST_MOD_RESULT(OnUserPreQuit, MOD_RESULT, (localuser, quitmsg, operquitmsg)); - if (MOD_RESULT == MOD_RES_DENY) + ModResult modres; + FIRST_MOD_RESULT(OnUserPreQuit, modres, (localuser, quitmsg, operquitmsg)); + if (modres == MOD_RES_DENY) return; } |
