From 86b135b3e0a76680af677cca491b471d6c0d6429 Mon Sep 17 00:00:00 2001 From: EyesOfAHawk Date: Tue, 16 Oct 2018 19:53:33 +1300 Subject: Add config for '@channel setopt MessageDelay '. --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') 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; } -- cgit v1.2.3-70-g09d2