aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 2ed275717..b0185be84 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -349,10 +349,10 @@ Cullable::Result FakeUser::Cull()
return User::Cull();
}
-bool User::OperLogin(const std::shared_ptr<OperAccount>& account)
+bool User::OperLogin(const std::shared_ptr<OperAccount>& account, bool force)
{
LocalUser* luser = IS_LOCAL(this);
- if (luser && !quitting)
+ if (luser && !quitting && !force)
{
ModResult modres;
FIRST_MOD_RESULT(OnPreOperLogin, modres, (luser, account));