]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Added parameters
[user/henk/code/inspircd.git] / configure
index 01683da91c927a1eef0e18410e69c01dbab0f3d0..06ad404dc44a55d598ec253c2bc3955523a343fe 100755 (executable)
--- a/configure
+++ b/configure
@@ -66,6 +66,8 @@ if ($arg eq "-update") {
     # We've Loaded the cache file and all our variables..
     print "Updating Files..\n";
     getosflags();
+    $has_epoll = $config{HAS_EPOLL};
+    $has_kqueue = $config{HAS_KQUEUE};
     writefiles();
     print "Complete.\n";
     exit;
@@ -149,6 +151,9 @@ if ($config{OSNAME} =~ /CYGWIN/) {
        $config{HAS_STRLCPY} = "true";
 }
 
+$config{HAS_EPOLL} = $has_epoll;
+$config{HAS_KQUEUE} = $has_kqueue; 
+
 ################################################################################
 #                          BEGIN INTERACTIVE PART                              #
 ################################################################################
@@ -230,7 +235,7 @@ while (!$continue) {
   print "What is the Maximum length of nicknames?\n";
   print "[\033[1;32m$config{NICK_LENGT}\033[0m] -> ";
   chomp($var = <STDIN>);
-  if ($var eq "") { $var = $config{NICK_LENGT}; }
+  if ($var eq "") { $var = $config{NICK_LENGT}; } else { $var++; }
   if ($var =~ /^\d+$/) {
     # We don't care what the number is, set it and be on our way.
     $config{NICK_LENGT} = $var;
@@ -241,9 +246,6 @@ while (!$continue) {
   }
 }
 
-# Because of the terminating null char we must increment this by one
-$config{NICK_LENGT}++;
-
 my $continue = 0;
 while (!$continue) {
   print "What is the Maximum number of mode changes in one line?\n";