summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 21:02:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 21:02:34 +0000
commit325797e2c1013295538e978f9428c51e2bf0ce98 (patch)
treedef9779d4e866597b94d6bbb8b0e408013e9d031
parente9b7b237c0370cd5f10f69c1c4878d464865b30b (diff)
Fixed nicklength perpetually increasing on each run (reported by katsklaw)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1521 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure b/configure
index 919aee625..06ad404dc 100755
--- a/configure
+++ b/configure
@@ -235,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;
@@ -246,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";