configure: make TOPICLEN warn on >390, not >=390

Configuring --with-topiclen=390 outputs a warning that TOPICLEN
has been limited to 390, but that's what was requested.
This commit is contained in:
Simon Arlott 2016-02-06 20:59:42 +00:00 committed by William Pitcock
parent d5ef3fd3b6
commit 173a2f4dda

View file

@ -575,7 +575,7 @@ AC_HELP_STRING([--with-nicklen=LENGTH],[Set the upper-bound nick length to LENGT
AC_ARG_WITH(topiclen,
AC_HELP_STRING([--with-topiclen=NUMBER],[Set the max topic length to NUMBER (default 390, max 390)]),
[
if test $withval -ge 390; then
if test $withval -gt 390; then
TOPICLEN=390
AC_MSG_WARN([TOPICLEN has a hard limit of 390. Setting TOPICLEN=390])
else