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);