r3625 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun May 11 08:20:28 EDT 2008
Author: esteel
Date: 2008-05-11 08:20:27 -0400 (Sun, 11 May 2008)
New Revision: 3625
Modified:
trunk/data/qcsrc/server/gamecommand.qc
Log:
allow server admins to stop a running vote with 'sv_cmd vstop'.. not sure if it will still make it into the release
Modified: trunk/data/qcsrc/server/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/server/gamecommand.qc 2008-05-11 12:06:24 UTC (rev 3624)
+++ trunk/data/qcsrc/server/gamecommand.qc 2008-05-11 12:20:27 UTC (rev 3625)
@@ -31,6 +31,7 @@
print(" savedb filename\n");
print(" dumpdb filename\n");
print(" loaddb filename\n");
+ print(" vstop\n");
GameCommand_Ban("help");
GameCommand_Generic("help");
return;
@@ -147,6 +148,16 @@
return;
}
+ if(argv(0) == "vstop")
+ {
+ local entity temp;
+ temp = spawn();
+ temp.netname = (cvar_string("sv_adminnick") == "") ? cvar_string("hostname") : cvar_string("sv_adminnick");
+ VoteStop(temp);
+ remove(temp);
+ return;
+ }
+
print("Invalid command. For a list of supported commands, try sv_cmd help.\n");
}
More information about the nexuiz-commits
mailing list