summaryrefslogtreecommitdiff
path: root/modules/commands/os_defcon.cpp
diff options
context:
space:
mode:
authorlethality <lethality@anope.org>2012-01-20 20:50:36 +0000
committerlethality <lethality@anope.org>2012-01-20 20:50:36 +0000
commit94c302baf32f1cde29dc4933c0da490b573a0731 (patch)
tree02a4d04a65e21f4c64131230750cdd3337187833 /modules/commands/os_defcon.cpp
parentcdb6bb8ec20dfc6edee477ffca0f2166805e37e3 (diff)
Fixed param check from last commit
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 a6454f866..2905b07bf 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -482,7 +482,7 @@ class OSDefcon : public Module
return EVENT_STOP;
}
}
- else if (command->name == "chanserv/mode" && params[1].equals_ci("LOCK"))
+ else if (command->name == "chanserv/mode" && params.size() > 1 && params[1].equals_ci("LOCK"))
{
if (DConfig.Check(DEFCON_NO_MLOCK_CHANGE))
{