r3697 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jun 8 13:26:48 EDT 2008


Author: div0
Date: 2008-06-08 13:26:41 -0400 (Sun, 08 Jun 2008)
New Revision: 3697

Modified:
   trunk/data/qcsrc/server/vote.qc
Log:
blub, this matched ALL commands starting with "kick", including "kickass". Not that I use such aliases on my server, but still...


Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc	2008-06-07 17:56:24 UTC (rev 3696)
+++ trunk/data/qcsrc/server/vote.qc	2008-06-08 17:26:41 UTC (rev 3697)
@@ -110,13 +110,18 @@
 						}
 
 						// make kick and kickban votes a bit nicer (and reject them if formatted badly)
-						if(substring(vote, 0, 4) == "kick" || substring(vote, 0, 7) == "kickban")
+						if(substring(vote, 0, 5) == "kick " || substring(vote, 0, 8) == "kickban ")
 						{
 							if(!(victim = GetKickVoteVictim(vote, "vcall", e)))
 								return TRUE;
 							vote = GetKickVoteVictim_newcommand;
 							votecalledvote_display = strzone(strcat("^1", vote, " (^7", victim.netname, "^1): ", GetKickVoteVictim_reason));
 						}
+						else if(vote == "kick " || vote == "kickban ")
+						{
+							print_to(e, strcat("Usage: ", vote, " #playernumber (as in \"status\")\n"));
+							return TRUE;
+						}
 						else
 						{
 							votecalledvote_display = strzone(strcat("^1", vote));




More information about the nexuiz-commits mailing list