diff options
author | EyesOfAHawk <blackoutro2006@gmail.com> | 2018-10-16 19:53:33 +1300 |
---|---|---|
committer | EyesOfAHawk <blackoutro2006@gmail.com> | 2018-10-16 19:53:33 +1300 |
commit | 86b135b3e0a76680af677cca491b471d6c0d6429 (patch) | |
tree | 7875fa68f9a2fccac6e2d63c28ecc92571647484 /src/map/atcommand.c | |
parent | baeb7a1742b0fd7ac5d3a4cecd90f74d461895fe (diff) | |
download | hercules-86b135b3e0a76680af677cca491b471d6c0d6429.tar.gz hercules-86b135b3e0a76680af677cca491b471d6c0d6429.tar.bz2 hercules-86b135b3e0a76680af677cca491b471d6c0d6429.tar.xz hercules-86b135b3e0a76680af677cca491b471d6c0d6429.zip |
Add config for '@channel setopt MessageDelay <delay>'.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index a7dc5dd95..0fdbe107f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9398,8 +9398,8 @@ ACMD(channel) } else { int v = atoi(sub3); if (k == HCS_OPT_MSG_DELAY) { - if (v < 0 || v > 10) { - safesnprintf(atcmd_output, sizeof(atcmd_output), msg_fd(fd,1451), v, opt_str[k]);// value '%d' for option '%s' is out of range (limit is 0-10) + if (v < 0 || v > channel->config->channel_opt_msg_delay) { + safesnprintf(atcmd_output, sizeof(atcmd_output), msg_fd(fd, 1451), v, opt_str[k], channel->config->channel_opt_msg_delay);// value '%d' for option '%s' is out of range (limit is 0-%d) clif->message(fd, atcmd_output); return false; } |