diff options
| author | oy <Tom_Adams@web.de> | 2010-10-13 20:31:21 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-13 20:31:21 +0200 |
| commit | fa768449e28b2ad494eb4d2340886583599805ec (patch) | |
| tree | f474c330d68d6bd52881161cb45c3419bd21d909 /src/game | |
| parent | be315edfc052a5aa1c7d9d48394e0997a989c8ae (diff) | |
| download | zcatch-fa768449e28b2ad494eb4d2340886583599805ec.tar.gz zcatch-fa768449e28b2ad494eb4d2340886583599805ec.zip | |
fixed issue with reason on forcevotekick
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/components/voting.cpp | 2 | ||||
| -rw-r--r-- | src/game/server/gamecontext.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/voting.cpp b/src/game/client/components/voting.cpp index 8a98e1b0..59f6d934 100644 --- a/src/game/client/components/voting.cpp +++ b/src/game/client/components/voting.cpp @@ -59,7 +59,7 @@ void CVoting::ForcevoteKick(int ClientId, const char *pReason) { char aBuf[32]; if(pReason[0]) - str_format(aBuf, sizeof(aBuf), "kick %d \"%s\"", ClientId, pReason); + str_format(aBuf, sizeof(aBuf), "kick %d %s", ClientId, pReason); else str_format(aBuf, sizeof(aBuf), "kick %d", ClientId); Client()->Rcon(aBuf); diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 0faba6fc..ce3be58f 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -682,12 +682,12 @@ void CGameContext::OnMessage(int MsgId, CUnpacker *pUnpacker, int ClientId) str_format(aChatmsg, sizeof(aChatmsg), "'%s' called for vote to kick '%s' (%s)", Server()->ClientName(ClientId), Server()->ClientName(KickId), pReason); str_format(aDesc, sizeof(aDesc), "Kick '%s'", Server()->ClientName(KickId)); if (!g_Config.m_SvVoteKickBantime) - str_format(aCmd, sizeof(aCmd), "kick %d \"Kicked by vote\"", KickId); + str_format(aCmd, sizeof(aCmd), "kick %d Kicked by vote", KickId); else { char aBuf[64] = {0}; Server()->GetClientIP(KickId, aBuf, sizeof(aBuf)); - str_format(aCmd, sizeof(aCmd), "ban %s %d \"Banned by vote\"", aBuf, g_Config.m_SvVoteKickBantime); + str_format(aCmd, sizeof(aCmd), "ban %s %d Banned by vote", aBuf, g_Config.m_SvVoteKickBantime); } } |