diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-21 18:24:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-21 18:24:15 +0000 |
commit | 56aff87a0c71c2b5af26dcc754391307594572b1 (patch) | |
tree | 3fbff751d54461069f663a4f730ad574692fbcf3 | |
parent | 4eb2638b4fb1d8ca950280982d67def2e299f55b (diff) |
Added allowpatterns
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1160 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/extra/m_sqlauth.cpp | 4 |
1 files 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)) |