From a306830516d6eed2aa3e52b584d628b9d67579ea Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 26 May 2005 22:39:14 +0000 Subject: Added a ton of missing prompts ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1531 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 42532c167..b0ddf16a3 100755 --- a/configure +++ b/configure @@ -232,7 +232,7 @@ you wish to do this? It may cause the IRCd to malfunction [y/n] my $continue = 0; while (!$continue) { - print "What is the Maximum length of nicknames?\n"; + print "What is the maximum length of nicknames?\n"; print "[\033[1;32m$config{NICK_LENGT}\033[0m] -> "; chomp($var = ); if ($var eq "") { $var = $config{NICK_LENGT}; } @@ -248,7 +248,40 @@ while (!$continue) { my $continue = 0; while (!$continue) { - print "What is the Maximum number of mode changes in one line?\n"; + print "What is the maximum length of channel names?\n"; + print "[\033[1;32m$config{CHAN_LENGT}\033[0m] -> "; + chomp($var = ); + if ($var eq "") { $var = $config{CHAN_LENGT}; } + if ($var =~ /^\d+$/) { + # We don't care what the number is, set it and be on our way. + $config{CHAN_LENGT} = $var; + $continue = 1; + print "\n"; + } else { + print "You must enter a number in this field. Please try again.\n\n"; + } +} + +my $continue = 0; +while (!$continue) { + print "What is the maximum number of channels a user may join at any one time?\n"; + print "[\033[1;32m$config{MAX_CHANNE}\033[0m] -> "; + chomp($var = ); + if ($var eq "") { $var = $config{MAX_CHANNE}; } + if ($var =~ /^\d+$/) { + # We don't care what the number is, set it and be on our way. + $config{MAX_CHANNE} = $var; + $continue = 1; + print "\n"; + } else { + print "You must enter a number in this field. Please try again.\n\n"; + } +} + + +my $continue = 0; +while (!$continue) { + print "What is the maximum number of mode changes in one line?\n"; print "[\033[1;32m$config{MAXI_MODES}\033[0m] -> "; chomp($var = ); if ($var eq "") { $var = $config{MAXI_MODES}; } @@ -476,16 +509,16 @@ sub writefiles { chomp(my $incos = `uname -n -s -r`); chomp(my $version = `sh ./src/version.sh`); open(FILEHANDLE, ">include/inspircd_config.h"); + my $NL = $config{NICK_LENGT}+1; + my $CL = $config{CHAN_LENGT}+1; print FILEHANDLE <