From 0d55f8847c792b9e0b67044f6cebf1d52ae69be1 Mon Sep 17 00:00:00 2001 From: Teetime Date: Wed, 23 Nov 2011 14:36:46 +0100 Subject: changed force of vote-reason --- src/game/server/gamecontext.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/game/server') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index b345ec8c..3f40bfcd 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -811,6 +811,11 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) return; } } + else if(g_Config.m_SvVoteForceReason && !pMsg->m_Reason[0]) + { + SendChatTarget(ClientID, "You must give a reason for your vote"); + return; + } else if(str_comp_nocase(pMsg->m_Type, "kick") == 0) { if(!g_Config.m_SvVoteKick) @@ -834,12 +839,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) } } - if(g_Config.m_SvKickForceReason && !pMsg->m_Reason[0]) - { - SendChatTarget(ClientID, "You must give a reason for your vote"); - return; - } - int KickID = str_toint(pMsg->m_Value); if(KickID < 0 || KickID >= MAX_CLIENTS || !m_apPlayers[KickID]) { -- cgit 1.4.1