diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-03 11:54:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:30 +0000 |
commit | 45b4d03e66058565129e4de53a719433a50cf4e6 (patch) | |
tree | 452069eb90987e3a95009b399b91b338905010e5 /src/game/g_cmds.c | |
parent | 7145527a1ca44c6afd20adf7e369f5f6f983047b (diff) |
* (bug 3719) IP address fields in admin system are not large enough for IPv6
(Amanieu)
* Prevent the host player on a non-dedicated server from being disconnected
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index efcf4938..bd819988 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1176,6 +1176,12 @@ void Cmd_CallVote_f( gentity_t *ent ) "print \"callvote: admin is immune from vote kick\n\"" ); return; } + if( level.clients[ clientNum ].pers.localClient ) + { + trap_SendServerCommand( ent-g_entities, + "print \"callvote: host is immute from vote kick\n\"" ); + return; + } // use ip in case this player disconnects before the vote ends Com_sprintf( level.voteString, sizeof( level.voteString ), @@ -1415,7 +1421,12 @@ void Cmd_CallTeamVote_f( gentity_t *ent ) "print \"callteamvote: admin is immune from vote kick\n\"" ); return; } - + if( level.clients[ clientNum ].pers.localClient ) + { + trap_SendServerCommand( ent-g_entities, + "print \"callteamvote: host is immune from vote kick\n\"" ); + return; + } // use ip in case this player disconnects before the vote ends Com_sprintf( level.teamVoteString[ cs_offset ], |