[nexuiz-commits] r7972 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Sep 28 06:56:14 EDT 2009
Author: div0
Date: 2009-09-28 06:56:14 -0400 (Mon, 28 Sep 2009)
New Revision: 7972
Modified:
trunk/data/qcsrc/server/sv_main.qc
Log:
add missing commands to cvarfilter
Modified: trunk/data/qcsrc/server/sv_main.qc
===================================================================
--- trunk/data/qcsrc/server/sv_main.qc 2009-09-28 10:52:56 UTC (rev 7971)
+++ trunk/data/qcsrc/server/sv_main.qc 2009-09-28 10:56:14 UTC (rev 7972)
@@ -336,12 +336,25 @@
if(cvar_string(k) == v)
goto cvar_fail;
}
+ else if(substring(s, 0, 1) == "!")
+ {
+ k = substring(s, 1, -1);
+ if(cvar(k))
+ goto cvar_fail;
+ }
+ else
+ {
+ k = s;
+ if not(cvar(k))
+ goto cvar_fail;
+ }
}
inv = !inv;
:cvar_fail
// now inv is 1 if we want to keep the item, and 0 if we want to get rid of it
if not(inv)
{
+ //print("cvarfilter fail\n");
remove(self);
return;
}
More information about the nexuiz-commits
mailing list