]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Check that --with-nicklen was passed a numeric value.
authorJilles Tjoelker <redacted>
Sun, 19 Oct 2008 15:27:35 +0000 (17:27 +0200)
committerJilles Tjoelker <redacted>
Sun, 19 Oct 2008 15:27:35 +0000 (17:27 +0200)
ircd-ratbox r26144 (androsyn)

configure.ac

index 910dc99c20a0941cc6b6af1f63ff6ef33e98ea4c..41f48e79587999dbfd38c54b34425a8492f51a94 100644 (file)
@@ -864,6 +864,9 @@ fi
 AC_ARG_WITH(nicklen,
 AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 15, max 50)]),
 [
+  if ! expr "$withval" + 0 >/dev/null 2>&1; then 
+       AC_ERROR([NICKLEN must be a numeric value])
+  fi 
   if test $withval -ge 50; then
        NICKLEN=50
        AC_MSG_WARN([NICKLEN has a hard limit of 50. Setting NICKLEN=50])