1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 22:23:12 +02:00

Fixed os_defcon too

This commit is contained in:
Adam
2012-09-08 04:51:44 -04:00
parent 7e3b5bed50
commit c4a1e1bb0c
+9 -1
View File
@@ -536,7 +536,15 @@ class OSDefcon : public Module
if (!DConfig.sessionlimit || !session_service)
return;
Session *session = session_service->FindSession(u->host);
Session *session;
try
{
session = session_service->FindSession(u->ip);
}
catch (const SocketException &)
{
return;
}
Exception *exception = session_service->FindException(u);
if (DConfig.Check(DEFCON_REDUCE_SESSION) && !exception)