From 420787dcab5e875ecf5eb27992a6e65eaf267438 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 2 Jan 2007 05:15:34 +0000 Subject: 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 --- src/modules/extra/m_sqloper.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3