mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
m_svshold Fix crash when called with 2 params, only triggerable by u-lines
This commit is contained in:
parent
a969c1e440
commit
391ec2c499
@ -123,6 +123,9 @@ class CommandSvshold : public Command
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (parameters.size() < 3)
|
||||||
|
return CMD_FAILURE;
|
||||||
|
|
||||||
// Adding - XXX todo make this respect <insane> tag perhaps..
|
// Adding - XXX todo make this respect <insane> tag perhaps..
|
||||||
long duration = ServerInstance->Duration(parameters[1]);
|
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());
|
SVSHold* r = new SVSHold(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user