Date: Sunday February 11, 2001 @ 17:58
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv14196/ntserv
Modified Files:
ntscmds.c
Log Message:
* ntserv/ntscmds.c (nts_commands): Made NODOCK a config.h option
* ntserv/ntscmds.c (do_nodock): Observers can't change dock permission
****************************************
Index: Vanilla/ntserv/ntscmds.c
diff -u Vanilla/ntserv/ntscmds.c:1.18 Vanilla/ntserv/ntscmds.c:1.19
--- Vanilla/ntserv/ntscmds.c:1.18 Fri Feb 2 03:17:52 2001
+++ Vanilla/ntserv/ntscmds.c Sun Feb 11 17:58:35 2001
@@ -1,4 +1,4 @@
-/* $Id: ntscmds.c,v 1.18 2001/02/02 09:17:52 cameron Exp $
+/* $Id: ntscmds.c,v 1.19 2001/02/11 23:58:35 unbelver Exp $
*/
/*
@@ -114,10 +114,12 @@
C_PR_INPICKUP,
"Administration commands for privileged users",
do_admin }, /* ADMIN */
+#ifdef NODOCK
{ "DOCK",
C_PR_INPICKUP,
"Toggle individual player docking permission. eg. 'DOCK 0 ON|OFF'",
do_nodock },
+#endif
#ifdef ALLOW_PAUSE
{ "PAUSE",
@@ -1104,6 +1106,14 @@
return;
}
+#ifdef OBSERVERS
+ if (p->p_status == POBSERV)
+ {
+ pmessage(whofrom, MINDIV, addr, "dock: Observers cannot change dock permissions");
+ return;
+ }
+#endif
+
who = strtok(comm, " ");
if ( who == NULL)
return;