mirror of
https://github.com/anope/anope.git
synced 2026-06-29 21:26:38 +02:00
Log rawio when in debug mode and fixed expiring session exceptions
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ bool LogInfo::HasType(LogType type)
|
||||
case LOG_TERMINAL:
|
||||
return true;
|
||||
case LOG_RAWIO:
|
||||
return this->RawIO;
|
||||
return debug ? true : this->RawIO;
|
||||
case LOG_DEBUG:
|
||||
return debug ? true : this->Debug;
|
||||
// LOG_DEBUG_[234]
|
||||
|
||||
+3
-4
@@ -200,17 +200,16 @@ void del_session(User *u)
|
||||
|
||||
void expire_exceptions()
|
||||
{
|
||||
for (std::vector<Exception *>::iterator it = exceptions.begin(), it_end = exceptions.end(); it != it_end; )
|
||||
for (unsigned i = exceptions.size(); i > 0; --i)
|
||||
{
|
||||
Exception *e = *it;
|
||||
std::vector<Exception *>::iterator curr_it = it++;
|
||||
Exception *e = exceptions[i - 1];
|
||||
|
||||
if (!e->expires || e->expires > Anope::CurTime)
|
||||
continue;
|
||||
if (Config->WallExceptionExpire)
|
||||
ircdproto->SendGlobops(OperServ, "Session limit exception for %s has expired.", e->mask.c_str());
|
||||
delete e;
|
||||
exceptions.erase(curr_it);
|
||||
exceptions.erase(exceptions.begin() + i - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user