summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar peavey2007-01-02 05:15:34 +0000
committerGravatar peavey2007-01-02 05:15:34 +0000
commit420787dcab5e875ecf5eb27992a6e65eaf267438 (patch)
tree86c924ddef7a90d7a381c14f5e47d4e86590e2db /src/modules/extra/m_sqloper.cpp
parentAlso use SQLhost for host config. (diff)
Fix: If sql user and pass matched, but not operclass or host, conf based command would NOT be called and request would die quietly without notifying the user or send SNOtice of failed attempt.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6214 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqloper.cpp')
-rw-r--r--src/modules/extra/m_sqloper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp
index ead9a4f36..bc506f917 100644
--- a/src/modules/extra/m_sqloper.cpp
+++ b/src/modules/extra/m_sqloper.cpp
@@ -172,6 +172,14 @@ public:
/* If/when one of the rows matches, stop checking and return */
return SQLSUCCESS;
}
+ if (tried_user && tried_pass)
+ {
+ LoginFail(user, tried_user, tried_pass);
+ free(tried_user);
+ free(tried_pass);
+ user->Shrink("oper_user");
+ user->Shrink("oper_pass");
+ }
}
}
else