r2096 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jan 11 04:03:52 EST 2007


Author: div0
Date: 2007-01-11 04:03:52 -0500 (Thu, 11 Jan 2007)
New Revision: 2096

Modified:
   trunk/data/qcsrc/server/clientcommands.qc
Log:
BUGFIX: validate map for master's chmap too


Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc	2007-01-11 09:01:27 UTC (rev 2095)
+++ trunk/data/qcsrc/server/clientcommands.qc	2007-01-11 09:03:52 UTC (rev 2096)
@@ -236,6 +236,8 @@
 				if(dovote == "") {
 					sprint(self, "^1Your command was empty. See help for more info.\n");
 				} else if(VoteAllowed(strcat(argv(2)))) { // strcat seems to be necessary
+					if(!ValidateMap(vote))
+						return;
 					// remap chmap to gotomap (forces intermission)
 					if(strlen(dovote) >= 6)
 						if(substring(dovote, 0, 6) == "chmap ")




More information about the nexuiz-commits mailing list