Added option KICK_INACTIVE. Uncomment it in config.txt if you want to disconnect inactive players.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1472 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
rastaf.zero@gmail.com
2011-04-18 15:47:20 +00:00
parent f908e53d8e
commit 65a0eefcf7
3 changed files with 13 additions and 6 deletions

View File

@@ -34,6 +34,7 @@
var/hostedby = null
var/respawn = 1
var/guest_jobban = 1
var/kick_inactive = 0 //force disconnect for inactive players
var/server
var/banappeals
@@ -196,6 +197,8 @@
diary << "Unknown game mode probability configuration definition: [prob_name]."
else
diary << "Incorrect probability configuration definition: [prob_name] [prob_value]."
if ("kick_inactive")
config.kick_inactive = text2num(value)
else
diary << "Unknown setting in configuration: '[name]'"

View File

@@ -15,11 +15,12 @@
LoadBans()
process_teleport_locs() //Sets up the wizard teleport locations
process_ghost_teleport_locs() //Sets up ghost teleport locations.
sleep_offline = 1
if (config.kick_inactive)
spawn(30)
//EXPERIMENTAL
Optimize()
sleep_offline = 1
//EXPERIMENTAL
spawn(0)

View File

@@ -22,6 +22,9 @@ LOG_WHISPER
# sql switching
# SQL_ENABLED
#disconnect players who did nothing during 10 minutes
# KICK_INACTIVE
# probablities for game modes chosen in "secret" and "random" modes
#
# default probablity is 1, increase to make that mode more likely to be picked