From 56aff87a0c71c2b5af26dcc754391307594572b1 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 21 Apr 2005 18:24:15 +0000 Subject: Added allowpatterns git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1160 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqlauth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp index 48c6c4183..157fcf11a 100644 --- a/src/modules/extra/m_sqlauth.cpp +++ b/src/modules/extra/m_sqlauth.cpp @@ -60,7 +60,7 @@ class ModuleSQLAuth : public Module killreason = Conf->ReadValue("sqlauth","killreason",0); // reason to give when access is denied to a user (put your reg details here) encryption = Conf->ReadValue("sqlauth","encryption",0); // name of sql function used to encrypt password, e.g. "md5" or "passwd". // define, but leave blank if no encryption is to be used. - WallOperFail = Conf->ReadBool("sqlauth","verbose",0); // set to 1 if failed connects should be reported to operators + WallOperFail = Conf->ReadFlag("sqlauth","verbose",0); // set to 1 if failed connects should be reported to operators allowpattern = Conf->ReadValue("sqlauth","allowpattern",0); // allow nicks matching the pattern without requiring auth delete Conf; SQLModule = Srv->FindModule("m_sql.so"); @@ -82,7 +82,7 @@ class ModuleSQLAuth : public Module virtual void OnUserRegister(userrec* user) { - if (allowpattern != "") && (Srv->MatchText(user->nick,allowpattern)) + if ((allowpattern != "") && (Srv->MatchText(user->nick,allowpattern))) return; if (!CheckCredentials(user->nick,user->password)) -- cgit v1.2.3