summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 21:01:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 21:01:34 +0000
commitc56dc5f7b6df6e96a82913ffdae739a3095d69c4 (patch)
tree0a56ba83227e43d6032a19d1a95afdf9968be480 /src
parente2b89c905400df260dae081e4fb0c1e9220777bf (diff)
Merge fix by peaveydk which stops crashes when user doesnt auth
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5529 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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");
}