aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-10 14:58:48 +0000
committerGravatar Sadie Powell2022-12-10 14:58:48 +0000
commit52e048b21423b4887671b3afa944f19c29657cbd (patch)
tree7901cae24f71e630abc31a681745496c36060aaa /src/users.cpp
parentSlightly improve the logging in cmd_oper. (diff)
Allow modules to ignore any checks from OnPreOperLogin.
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));