diff options
author | Haru <haru@dotalux.com> | 2018-11-13 17:06:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 17:06:49 +0100 |
commit | d564cdaabdb9f1929e58cd68c1208f89100acf90 (patch) | |
tree | bf48c34155abe1b28962078c0609a99a04e741c8 /src/map/atcommand.c | |
parent | 78db115b41d966daf26160abe224701f743f6df0 (diff) | |
parent | 86b135b3e0a76680af677cca491b471d6c0d6429 (diff) | |
download | hercules-d564cdaabdb9f1929e58cd68c1208f89100acf90.tar.gz hercules-d564cdaabdb9f1929e58cd68c1208f89100acf90.tar.bz2 hercules-d564cdaabdb9f1929e58cd68c1208f89100acf90.tar.xz hercules-d564cdaabdb9f1929e58cd68c1208f89100acf90.zip |
Merge pull request #2287 from EyesOfAHawk/hcs_opt_msg_delay
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 809a740d7..236975b32 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9387,8 +9387,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; } |