r2088 - branches/nexuiz-2.0/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Jan 3 14:00:49 EST 2007
Author: div0
Date: 2007-01-03 14:00:49 -0500 (Wed, 03 Jan 2007)
New Revision: 2088
Modified:
branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
Log:
cmd info (something) prints the content of sv_info_(something), for server admins to put text there
Modified: branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc 2007-01-03 19:00:29 UTC (rev 2087)
+++ branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc 2007-01-03 19:00:49 UTC (rev 2088)
@@ -80,6 +80,7 @@
void SV_ParseClientCommand(string s) {
local float index;
+ local string cmd;
tokenize(s);
@@ -357,8 +358,13 @@
} else if(argv(0) == "say_team") {
Say(self, TRUE, substring(s, 9, strlen(s) - 9));
//clientcommand(self, formatmessage(s));
+ } else if(argv(0) == "info") {
+ cmd = cvar_string(strcat("sv_info_", argv(1)));
+ if(cmd == "")
+ sprint(self, "ERROR: unsupported info command\n");
+ else
+ wordwrap_sprint(cmd, 1111);
} else {
- string cmd;
cmd = argv(0);
if(cmd != "status")
if(cmd != "name")
More information about the nexuiz-commits
mailing list