summaryrefslogtreecommitdiff
path: root/modules/commands/os_defcon.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-04-25 18:49:53 -0400
committerAdam <Adam@anope.org>2012-04-25 18:49:53 -0400
commitb08aa4ed92625693b60cd490f1d8f10ca8fdaefd (patch)
tree9911cc33382bcc52e5697085c01d118b4eb3b001 /modules/commands/os_defcon.cpp
parent1081ecdae80d10bcac0f8543d665c5579f271e61 (diff)
Check for os_sesion to exist before having defcon try and place session bans
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r--modules/commands/os_defcon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp
index 6b305c736..ee167e079 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -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);