diff options
| author | oy <Tom_Adams@web.de> | 2011-12-31 12:11:48 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-12-31 12:11:48 +0100 |
| commit | c975390195eed17c615bbebfab981a2394dec424 (patch) | |
| tree | ae0618de6bb9ccec45bc42d444c6204eb3f771c9 /src/game | |
| parent | ccaec795675b92c36da77e8d1e42e176f60b4e21 (diff) | |
| download | zcatch-c975390195eed17c615bbebfab981a2394dec424.tar.gz zcatch-c975390195eed17c615bbebfab981a2394dec424.zip | |
made vote ban check if the ip matches an authed player
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 0cd8e801..1f163983 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -481,7 +481,9 @@ void CGameContext::OnTick() if(m_VoteEnforce == VOTE_ENFORCE_YES) { + Server()->SetRconCID(IServer::RCON_CID_VOTE); Console()->ExecuteLine(m_aVoteCommand); + Server()->SetRconCID(IServer::RCON_CID_SERV); EndVote(); SendChat(-1, CGameContext::CHAT_ALL, "Vote passed"); @@ -737,7 +739,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) char aAddrStr[NETADDR_MAXSTRSIZE] = {0}; Server()->GetClientAddr(KickID, aAddrStr, sizeof(aAddrStr)); str_format(aCmd, sizeof(aCmd), "ban %s %d Banned by vote", aAddrStr, g_Config.m_SvVoteKickBantime); - Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aCmd); } } else if(str_comp_nocase(pMsg->m_Type, "spectate") == 0) |