summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqlauth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_sqlauth.cpp')
-rw-r--r--src/modules/extra/m_sqlauth.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp
index e6878777d..93d763cb5 100644
--- a/src/modules/extra/m_sqlauth.cpp
+++ b/src/modules/extra/m_sqlauth.cpp
@@ -27,6 +27,8 @@
/* $ModDesc: Allow/Deny connections based upon an arbitary SQL table */
+extern InspIRCd* ServerInstance;
+
class ModuleSQLAuth : public Module
{
Server* Srv;
@@ -94,7 +96,7 @@ public:
if (!CheckCredentials(user))
{
- userrec::QuitUser(user,killreason);
+ userrec::QuitUser(ServerInstance,user,killreason);
}
}
@@ -202,7 +204,7 @@ public:
{
if(user->GetExt("sqlauth_failed"))
{
- userrec::QuitUser(user,killreason);
+ userrec::QuitUser(ServerInstance,user,killreason);
return false;
}