r2228 - in trunk: Docs data data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Mar 15 11:28:31 EDT 2007


Author: esteel
Date: 2007-03-15 11:28:30 -0400 (Thu, 15 Mar 2007)
New Revision: 2228

Modified:
   trunk/Docs/FAQ.aft
   trunk/Docs/FAQ.html
   trunk/data/default.cfg
   trunk/data/qcsrc/server/clientcommands.qc
   trunk/data/qcsrc/server/defs.qh
Log:
removed clientcommands


Modified: trunk/Docs/FAQ.aft
===================================================================
--- trunk/Docs/FAQ.aft	2007-03-14 20:20:06 UTC (rev 2227)
+++ trunk/Docs/FAQ.aft	2007-03-15 15:28:30 UTC (rev 2228)
@@ -56,8 +56,7 @@
 If you follow the tutorial mentioned above you do not need this command line argument as it will be done in the config file created for the server.
 
 ** Is there some kind of rcon?
-Yes starting with Nexuiz 2.0 there is rcon (QuakeWorld compatible). To use it you must enter |rcon__password hackme| in the server console or server config file. The Nexuiz client has to set the same password in the same fasion. You can then issue commands with |rcon <command>|. There are also external rcon tools but make sure you use a QW compatible rcon tool.
-There is also a feature called |client side commands|. To enable it enter |sv__clientcommands 1| on your server console. Don't forget to set a password with |sv__clientcommands__password hackme|. Now you can become admin ingame by entering |ccl hackme| on the client console. To issue commands enter |cc <command>| (e.g. |cc restart| or |cc chmap dm_nexdm12|).
+Yes starting with Nexuiz 2.0 there is rcon (QuakeWorld compatible). To use it you must enter |rcon__password <password>| in the server console or server config file. The Nexuiz client has to set the same password in the same fasion. You can then issue commands with |rcon <command>| if you are connected to the server or have set |rcon__address <ip/hostname>| or |rcon__address <ip/hostname>:<port>| to point to the server. There are also external rcon tools but make sure you use a QW compatible rcon tool.
 
 ** How can i kick people who are using special characters in their names?
 Enter |status| at the console. You will see a list of all players. In front of their names you will see a number (the player id). You can kick the player you don't like with |kick # <player id> <reason>| (notice the space after #).

Modified: trunk/Docs/FAQ.html
===================================================================
--- trunk/Docs/FAQ.html	2007-03-14 20:20:06 UTC (rev 2227)
+++ trunk/Docs/FAQ.html	2007-03-15 15:28:30 UTC (rev 2228)
@@ -217,8 +217,7 @@
 <!--End Section 2-->
 <h3><a name="Is there some kind of rcon?">Is there some kind of rcon?</a></h3>
 <p class="Body">
-Yes starting with Nexuiz 2.0 there is rcon (QuakeWorld compatible). To use it you must enter <tt>rcon_password hackme</tt> in the server console or server config file. The Nexuiz client has to set the same password in the same fasion. You can then issue commands with <tt>rcon &lt;command&gt;</tt>. There are also external rcon tools but make sure you use a QW compatible rcon tool.
-There is also a feature called <tt>client side commands</tt>. To enable it enter <tt>sv_clientcommands 1</tt> on your server console. Don't forget to set a password with <tt>sv_clientcommands_password hackme</tt>. Now you can become admin ingame by entering <tt>ccl hackme</tt> on the client console. To issue commands enter <tt>cc &lt;command&gt;</tt> (e.g. <tt>cc restart</tt> or <tt>cc chmap dm_nexdm12</tt>).
+Yes starting with Nexuiz 2.0 there is rcon (QuakeWorld compatible). To use it you must enter <tt>rcon_password &lt;password&gt;</tt> in the server console or server config file. The Nexuiz client has to set the same password in the same fasion. You can then issue commands with <tt>rcon &lt;command&gt;</tt> if you are connected to the server or have set <tt>rcon_address &lt;ip/hostname&gt;</tt> or <tt>rcon_address &lt;ip/hostname&gt;:&lt;port&gt;</tt> to point to the server. There are also external rcon tools but make sure you use a QW compatible rcon tool.
 </p>
 <!--End Section 2-->
 <h3><a name="How can i kick people who are using special characters in their names?">How can i kick people who are using special characters in their names?</a></h3>

Modified: trunk/data/default.cfg
===================================================================
--- trunk/data/default.cfg	2007-03-14 20:20:06 UTC (rev 2227)
+++ trunk/data/default.cfg	2007-03-15 15:28:30 UTC (rev 2228)
@@ -38,9 +38,6 @@
 alias ply "playdemo demos/$1"
 alias tdem "timedemo demos/$1"
 
-alias ccl "cmd clogin $1"
-alias cc "cmd ccmd $*"
-
 alias dropweapon "impulse 17"
 alias +show_info +button7
 alias -show_info -button7
@@ -96,10 +93,6 @@
 set minplayers 0
 sv_cullentities_trace 1
 
-// disable rcon-like clientcommands to avoid server being open with default password
-seta sv_clientcommands 0
-seta sv_clientcommands_password hackme
-
 // restart server if all players hit "ready"-button
 set sv_ready_restart 0
 

Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc	2007-03-14 20:20:06 UTC (rev 2227)
+++ trunk/data/qcsrc/server/clientcommands.qc	2007-03-15 15:28:30 UTC (rev 2228)
@@ -84,47 +84,7 @@
 
 	tokenize(s);
 
-	if(argv(0) == "clogin") {
-		if(cvar("sv_clientcommands")) {
-			if(self.adminstatus < -5) {
-				sprint(self, "Too many unsuccessful tries.\n");
-			} else if(argv(1) == cvar_string("sv_clientcommands_password")) {
-				self.adminstatus = 1;
-				sprint(self, "You now have remote admin status.\n");
-				ServerConsoleEcho(strcat("ClientCommands: ", self.netname, " received admin status"), TRUE);
-			} else {
-				sprint(self, "Wrong password.\n");
-				// use of -- produces compiler warning in the if() line???
-				self.adminstatus = self.adminstatus - 1;
-				if(self.adminstatus == 0)
-				{
-					sprint(self, "You lost remote admin status.\n");
-					ServerConsoleEcho(strcat("ClientCommands: ", self.netname, " lost admin status"), TRUE);
-				}
-			}
-		} else {
-			sprint(self, "Clientside commands NOT allowed.\n");
-		}
-	} else if(argv(0) == "ccmd") {
-		if(cvar("sv_clientcommands")) {
-			if(self.adminstatus > 0) {
-				local string command;
-				command = argv(1);
-				index = 2;
-				while(argv(index) != "") {
-					command = strcat(command, " ", argv(index));
-					index++;
-				}
-				command = strzone(command);
-				ServerConsoleEcho(strcat("ClientCommands: ", self.netname, " issued command '", command, "'"), TRUE);
-				localcmd(strcat(command, "\n"));
-				strunzone(command);
-			} else
-				sprint(self, "You don't have remote admin status.\n");
-		} else {
-			sprint(self, "Clientside commands NOT allowed.\n");
-		}
-	} else if(argv(0) == "vote") {
+	if(argv(0) == "vote") {
 		if(argv(1) == "help") {
 			local string vmasterdis;
 			if(!cvar("sv_vote_master")) {
@@ -191,8 +151,7 @@
 		} else if(argv(1) == "stop") {
 			if(!votecalled) {
 				sprint(self, "^1No vote called.\n");
-			} else if(self == votecaller
-				  || self.adminstatus > 0) { // the votecaller and admins can stop a vote
+			} else if(self == votecaller) { // the votecaller can stop a vote
 				VoteStop(self);
 			} else {
 				sprint(self, "^1You are not allowed to stop that Vote.\n");

Modified: trunk/data/qcsrc/server/defs.qh
===================================================================
--- trunk/data/qcsrc/server/defs.qh	2007-03-14 20:20:06 UTC (rev 2227)
+++ trunk/data/qcsrc/server/defs.qh	2007-03-15 15:28:30 UTC (rev 2228)
@@ -23,9 +23,6 @@
 //.string	wad;
 //.string	map;
 
-// is this client a remote administrator?
-.float adminstatus;
-
 //.float	worldtype;
 .float	delay;
 .float	wait;




More information about the nexuiz-commits mailing list