1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 10:06:38 +02:00

Check for os_sesion to exist before having defcon try and place session bans

This commit is contained in:
Adam
2012-04-25 18:49:53 -04:00
parent 1081ecdae8
commit b08aa4ed92
+1 -1
View File
@@ -534,7 +534,7 @@ class OSDefcon : public Module
return;
}
if (!DConfig.sessionlimit)
if (!DConfig.sessionlimit || !session_service)
return;
Session *session = session_service->FindSession(u->host);