r2098 - branches/nexuiz-2.0/data/qcsrc/server

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


Author: div0
Date: 2007-01-11 04:05:05 -0500 (Thu, 11 Jan 2007)
New Revision: 2098

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
Log:
validate chmap for masters


Modified: branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc	2007-01-11 09:04:06 UTC (rev 2097)
+++ branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc	2007-01-11 09:05:05 UTC (rev 2098)
@@ -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(dovote))
+						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