diff options
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r-- | src/modules/m_svshold.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 9915ef7be..d2269839d 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -123,6 +123,9 @@ class CommandSvshold : public Command } else { + if (parameters.size() < 3) + return CMD_FAILURE; + // Adding - XXX todo make this respect <insane> tag perhaps.. long duration = ServerInstance->Duration(parameters[1]); SVSHold* r = new SVSHold(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str()); |