]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - makeconf
Moved all command handler functions into commands.cpp/commands.h
[user/henk/code/inspircd.git] / makeconf
index 3f058892c4f96a0664af257ff8f3b6a3dfa7e124..70ffa45957cc8a481a509d54758230c23cfcfb3c 100755 (executable)
--- 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 
@@ -643,12 +655,12 @@ echo "Enable Channel Founder? [Channel Mode +q] [yes/no]"
 echo -e $n "[\033[1;32m$OP_FOUND\033[0;37m] -> $c"
 read cc
 if [ "$cc" ] ; then
-        OP_DEBUG=$cc
+        OP_FOUND=$cc
 fi
 
 echo "#-#-#-#-#-#-#-#-#-#-#-#-#-  SERVER OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#" >> makeconf.temp
 echo "<options  prefixquit=\"$OP_PREFIX\"" >> makeconf.temp 
-echo "          debug=\"$OP_DEBUG\"" >> makeconf.temp
+echo "          loglevel=\"$OP_DEBUG\"" >> makeconf.temp
 echo "          allowhalfop=\"$OP_HALFY\"" >> makeconf.temp
 echo "          allowprotect=\"$OP_PROTE\"" >> makeconf.temp
 echo "          allowfounder=\"$OP_FOUND\">" >> makeconf.temp