From 52e048b21423b4887671b3afa944f19c29657cbd Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 10 Dec 2022 14:58:48 +0000 Subject: Allow modules to ignore any checks from OnPreOperLogin. --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') 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& account) +bool User::OperLogin(const std::shared_ptr& account, bool force) { LocalUser* luser = IS_LOCAL(this); - if (luser && !quitting) + if (luser && !quitting && !force) { ModResult modres; FIRST_MOD_RESULT(OnPreOperLogin, modres, (luser, account)); -- cgit v1.3.1-10-gc9f91