1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:06:39 +02:00

Add m_sql_log

This commit is contained in:
Adam
2013-08-07 16:44:35 +00:00
parent 1efd289488
commit 4865a8cfff
4 changed files with 140 additions and 2 deletions
+4 -2
View File
@@ -308,7 +308,7 @@ void LogInfo::OpenLogFiles()
{
const Anope::string &target = this->targets[i];
if (target.empty() || target[0] == '#' || target == "globops")
if (target.empty() || target[0] == '#' || target == "globops" || target.find(":") != Anope::string::npos)
continue;
LogFile *lf = new LogFile(CreateLogName(target));
@@ -350,6 +350,8 @@ void LogInfo::ProcessMessage(const Log *l)
const Anope::string &buffer = l->BuildPrefix() + l->buf.str();
FOREACH_MOD(OnLogMessage, (this, l, buffer));
for (unsigned i = 0; i < this->targets.size(); ++i)
{
const Anope::string &target = this->targets[i];
@@ -391,7 +393,7 @@ void LogInfo::ProcessMessage(const Log *l)
{
const Anope::string &target = this->targets[i];
if (target.empty() || target[0] == '#' || target == "globops")
if (target.empty() || target[0] == '#' || target == "globops" || target.find(":") != Anope::string::npos)
continue;
Anope::string oldlog = CreateLogName(target, Anope::CurTime - 86400 * this->log_age);