summaryrefslogtreecommitdiff
path: root/makeconf
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 16:31:50 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 16:31:50 +0000
commit4aeef901f963435ed9dd3693898e4f6850d4c96b (patch)
tree5ff4d57ace31e0a3ae81b44516c7dc58e3c5f538 /makeconf
parent4d027bf034b11c95e77e70423565bb1ce46bdbe0 (diff)
Added 'Timeout' in classes :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@390 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'makeconf')
-rwxr-xr-xmakeconf16
1 files changed, 14 insertions, 2 deletions
diff --git a/makeconf b/makeconf
index 250722606..70ffa4595 100755
--- a/makeconf
+++ b/makeconf
@@ -365,14 +365,26 @@ while [ $ok -eq 0 ] ; do
ALLOW_IP=$cc
fi
if [ "$ok" != "1" ] ; then
+ echo "A Registration Timeout is the time it takes before Ping Timeouting"
+ echo "a client trying to connect to the server, which hasnt issued the initial"
+ echo "commands. It is recommended that you set this to 90, if you give no"
+ echo "value, the default will be used."
+ echo "Enter 'registration' timeout"
+ echo $n "[\033[1;32m90\033[0;37m] -> $c"
+ read cc
+ if [ ! "$cc" ] ; then
+ TIMEOUT = "90"
+ else
+ TIMEOUT = $cc
+ fi
echo "Enter Password [If Applicable]"
echo $n "[] -> $c"
read cc
if [ ! "$cc" ] ; then
default=1
- echo "<connect allow=\"$ALLOW_IP\">" >> makeconf.temp
+ echo "<connect allow=\"$ALLOW_IP\" timeout=\"$TIMEOUT\">" >> makeconf.temp
else
- echo "<connect allow=\"$ALLOW_IP\" password=\"$cc\">" >> makeconf.temp
+ echo "<connect allow=\"$ALLOW_IP\" password=\"$cc\" timeout=\"$TIMEOUT\>" >> makeconf.temp
fi
fi
done