diff options
| author | 2009-05-02 19:55:02 +0000 | |
|---|---|---|
| committer | 2009-05-02 19:55:02 +0000 | |
| commit | b0884a94ef85f28fa964adc1b4f0732f2986ca7a (patch) | |
| tree | f322376dceee3af1f4d043b86808cbf90bf71987 /src/modules/extra/m_sqlauth.cpp | |
| parent | Remove commands makefile also on make distclean. (diff) | |
| download | inspircd++-b0884a94ef85f28fa964adc1b4f0732f2986ca7a.tar.gz inspircd++-b0884a94ef85f28fa964adc1b4f0732f2986ca7a.tar.bz2 inspircd++-b0884a94ef85f28fa964adc1b4f0732f2986ca7a.zip | |
Globally route "a" snotices for more modules. Patch from Milliways.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11352 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqlauth.cpp')
| -rw-r--r-- | src/modules/extra/m_sqlauth.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_sqlauth.cpp b/src/modules/extra/m_sqlauth.cpp index 9043969b9..8e9d33d58 100644 --- a/src/modules/extra/m_sqlauth.cpp +++ b/src/modules/extra/m_sqlauth.cpp @@ -140,7 +140,7 @@ public: else { if (verbose) - ServerInstance->SNO->WriteToSnoMask('a', "Forbidden connection from %s!%s@%s (SQL query failed: %s)", user->nick.c_str(), user->ident.c_str(), user->host.c_str(), req.error.Str()); + ServerInstance->SNO->WriteGlobalSno('a', "Forbidden connection from %s!%s@%s (SQL query failed: %s)", user->nick.c_str(), user->ident.c_str(), user->host.c_str(), req.error.Str()); return false; } } @@ -166,13 +166,13 @@ public: else if (verbose) { /* No rows in result, this means there was no record matching the user */ - ServerInstance->SNO->WriteToSnoMask('a', "Forbidden connection from %s!%s@%s (SQL query returned no matches)", user->nick.c_str(), user->ident.c_str(), user->host.c_str()); + ServerInstance->SNO->WriteGlobalSno('a', "Forbidden connection from %s!%s@%s (SQL query returned no matches)", user->nick.c_str(), user->ident.c_str(), user->host.c_str()); user->Extend("sqlauth_failed"); } } else if (verbose) { - ServerInstance->SNO->WriteToSnoMask('a', "Forbidden connection from %s!%s@%s (SQL query failed: %s)", user->nick.c_str(), user->ident.c_str(), user->host.c_str(), res->error.Str()); + ServerInstance->SNO->WriteGlobalSno('a', "Forbidden connection from %s!%s@%s (SQL query failed: %s)", user->nick.c_str(), user->ident.c_str(), user->host.c_str(), res->error.Str()); user->Extend("sqlauth_failed"); } } |
