summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_sqlauth.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp
index 61666fc4e..fd4c67ed0 100644
--- a/src/modules/extra/m_sqlauth.cpp
+++ b/src/modules/extra/m_sqlauth.cpp
@@ -183,7 +183,11 @@ public:
{
ServerInstance->Log(DEBUG, "Got query with unknown ID, this probably means the user quit while the query was in progress");
}
-
+
+ if (!user->GetExt("sqlauthed"))
+ {
+ userrec::QuitUser(Srv,user,killreason);
+ }
return SQLSUCCESS;
}
@@ -200,12 +204,6 @@ public:
virtual bool OnCheckReady(userrec* user)
{
- if(user->GetExt("sqlauth_failed"))
- {
- userrec::QuitUser(Srv,user,killreason);
- return false;
- }
-
return user->GetExt("sqlauthed");
}