r5211 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Dec 14 08:29:18 EST 2008


Author: div0
Date: 2008-12-14 08:29:18 -0500 (Sun, 14 Dec 2008)
New Revision: 5211

Modified:
   trunk/data/qcsrc/server/vote.qc
Log:
better support ~ kickbans


Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc	2008-12-14 13:02:33 UTC (rev 5210)
+++ trunk/data/qcsrc/server/vote.qc	2008-12-14 13:29:18 UTC (rev 5211)
@@ -46,10 +46,16 @@
 		else
 			GetKickVoteVictim_reason = "";
 
+		reason = "";
 		if(cmd != "vdo" || GetKickVoteVictim_reason == "")
 			reason = "~"; // by convention, ~ prefixes a "unverified" kickban which will not be networked
-		else
-			reason = "";
+
+		if(substring(GetKickVoteVictim_reason, 0, 1) == "~")
+		{
+			reason = "~";
+			GetKickVoteVictim_reason = substring(GetKickVoteVictim_reason, 1, strlen(GetKickVoteVictim_reason) - 1);
+		}
+
 		if(caller)
 			reason = strcat(reason, "player ", strdecolorize(caller.netname));
 		else




More information about the nexuiz-commits mailing list