From fb1a68cd964abbf0717990083eaca95054d0cb3b Mon Sep 17 00:00:00 2001 From: flowtron Date: Sat, 15 Oct 2011 23:51:47 +0000 Subject: [PATCH] never kick a SPEC for inactivity - manual kick-vote required git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6663 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/serverchecks.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/src/serverchecks.h b/source/src/serverchecks.h index 2fc9e061..ee34631e 100644 --- a/source/src/serverchecks.h +++ b/source/src/serverchecks.h @@ -510,8 +510,10 @@ void check_afk() if ( c.type != ST_TCPIP || c.connectmillis + 60 * 1000 > servmillis || c.inputmillis + scl.afk_limit > servmillis || clienthasflag(c.clientnum) != -1 ) continue; if ( ( c.state.state == CS_DEAD && !m_arena && c.state.lastdeath + 45 * 1000 < gamemillis) || - ( c.state.state == CS_ALIVE && c.upspawnp ) || - ( c.state.state == CS_SPECTATE && totalclients >= scl.maxclients ) ) { + ( c.state.state == CS_ALIVE && c.upspawnp ) /*|| + ( c.state.state == CS_SPECTATE && totalclients >= scl.maxclients ) ) // only kick spectator if server is full - 2011oct16:flowtron: mmh, that seems reasonable enough .. still, kicking spectators for inactivity seems harsh! disabled ATM, kick them manually if you must. + */ + { logline(ACLOG_INFO, "[%s] %s %s", c.hostname, c.name, "is afk"); defformatstring(msg)("%s is afk", c.name); sendservmsg(msg);