1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 13:26:39 +02:00

Reworked live SQL support yet again

This commit is contained in:
Adam
2012-04-23 05:08:26 -04:00
parent 63c639e108
commit 573e49a7ea
172 changed files with 2517 additions and 2217 deletions
+4 -4
View File
@@ -102,7 +102,7 @@ class ExpireTimer : public Timer
continue;
Log(findbot(Config->OperServ), "expire/exception") << "Session exception for " << e->mask << "has expired.";
session_service->DelException(e);
delete e;
e->destroy();
}
}
};
@@ -143,7 +143,7 @@ class ExceptionDelCallback : public NumberList
FOREACH_MOD(I_OnExceptionDel, OnExceptionDel(source.u, e));
session_service->DelException(e);
delete e;
e->destroy();
}
};
@@ -346,7 +346,7 @@ class CommandOSException : public Command
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnExceptionAdd, OnExceptionAdd(exception));
if (MOD_RESULT == EVENT_STOP)
delete exception;
exception->destroy();
else
{
session_service->AddException(exception);
@@ -635,7 +635,7 @@ class OSSession : public Module
if (kill && !exempt)
{
BotInfo *bi = findbot(Config->OperServ);
const BotInfo *bi = findbot(Config->OperServ);
if (bi)
{
if (!Config->SessionLimitExceeded.empty())