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
This commit is contained in:
flowtron
2011-10-15 23:51:47 +00:00
parent f1ff34db9c
commit fb1a68cd96
+4 -2
View File
@@ -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);