about summary refs log tree commit diff
path: root/src/game/server/gamecontext.cpp
diff options
context:
space:
mode:
authorTeetime <TeetimeTW@yahoo.de>2011-11-23 14:36:46 +0100
committerTeetime <TeetimeTW@yahoo.de>2011-11-23 14:36:46 +0100
commit0d55f8847c792b9e0b67044f6cebf1d52ae69be1 (patch)
tree0c1c0d4bd1ec52d9a2b3fbdf86b00689b3ed1e44 /src/game/server/gamecontext.cpp
parentb76002a178b80463abf59fdd2de59f7cce354575 (diff)
downloadzcatch-0d55f8847c792b9e0b67044f6cebf1d52ae69be1.tar.gz
zcatch-0d55f8847c792b9e0b67044f6cebf1d52ae69be1.zip
changed force of vote-reason
Diffstat (limited to 'src/game/server/gamecontext.cpp')
-rw-r--r--src/game/server/gamecontext.cpp11
1 files changed, 5 insertions, 6 deletions
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])
 			{