diff options
author | Adam <Adam@anope.org> | 2012-04-25 18:49:53 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-25 18:49:53 -0400 |
commit | b08aa4ed92625693b60cd490f1d8f10ca8fdaefd (patch) | |
tree | 9911cc33382bcc52e5697085c01d118b4eb3b001 /modules/commands/os_defcon.cpp | |
parent | 1081ecdae80d10bcac0f8543d665c5579f271e61 (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.cpp | 2 |
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); |