From a0c4fc7976e504349b21a1b29f120167c07fcd03 Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 11 Jan 2007 09:03:52 +0000 Subject: [PATCH] BUGFIX: validate map for master's chmap too git-svn-id: svn://svn.icculus.org/nexuiz/trunk/data@2096 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- qcsrc/server/clientcommands.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/clientcommands.qc b/qcsrc/server/clientcommands.qc index d52bd966e..3f4d17573 100644 --- a/qcsrc/server/clientcommands.qc +++ b/qcsrc/server/clientcommands.qc @@ -236,6 +236,8 @@ void SV_ParseClientCommand(string s) { 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 ") -- 2.39.2