Date:	Wednesday January 3, 2001 @ 16:51
Author:	unbelver

Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv23944/ntserv

Modified Files:
	ntscmds.c 
Log Message:

        Addendum: Changed logic from nodock 0 on (disable docking) to 
        dock 0 off (disable docking) and dock 0 on (enable docking) on 
        suggestion of James to get rid of the double-negative.

--Carlos V.



****************************************

Index: Vanilla/ntserv/ntscmds.c
diff -u Vanilla/ntserv/ntscmds.c:1.16 Vanilla/ntserv/ntscmds.c:1.17
--- Vanilla/ntserv/ntscmds.c:1.16	Wed Jan  3 04:00:03 2001
+++ Vanilla/ntserv/ntscmds.c	Wed Jan  3 16:51:38 2001
@@ -1,4 +1,4 @@
-/* $Id: ntscmds.c,v 1.16 2001/01/03 10:00:03 unbelver Exp $
+/* $Id: ntscmds.c,v 1.17 2001/01/03 22:51:38 unbelver Exp $
  */
 
 /*
@@ -114,9 +114,9 @@
 		C_PR_INPICKUP,
 		"Administration commands for privileged users",
 		do_admin },			/* ADMIN */
-    { "NODOCK",
+    { "DOCK",
       C_PR_INPICKUP,
-      "Toggle individual player docking permission. eg. 'NODOCK 0 ON|OFF'",
+      "Toggle individual player docking permission. eg. 'DOCK 0 ON|OFF'",
       do_nodock },
 
 #ifdef ALLOW_PAUSE
@@ -1100,7 +1100,7 @@
   
   if (p->p_ship.s_type != STARBASE)
     {
-      pmessage(whofrom, MINDIV, addr, "nodock: must be a starbase to use nodock");
+      pmessage(whofrom, MINDIV, addr, "dock: must be a starbase to use nodock");
       return;
     }
   
@@ -1111,14 +1111,14 @@
   who = strtok(NULL, " ");
   if(who == NULL)
     {
-      pmessage(whofrom, MINDIV, addr, "nodock usage: 'NODOCK 0 ON|OFF'");
+      pmessage(whofrom, MINDIV, addr, "dock usage: 'DOCK 0 ON|OFF'");
       return;
     }
 
   what = strtok(NULL, " ");
   if(what == NULL)
     {
-      pmessage(whofrom, MINDIV, addr, "nodock usage: 'NODOCK 0 ON|OFF'");
+      pmessage(whofrom, MINDIV, addr, "dock usage: 'DOCK 0 ON|OFF'");
       return;
     }
 
@@ -1129,34 +1129,34 @@
     slot = 10 + *who - 'A';
   else 
     {
-      pmessage(whofrom, MINDIV, addr, "nodock: unrecognized slot");
+      pmessage(whofrom, MINDIV, addr, "dock: unrecognized slot");
       return;
     }
   victim = &players[slot];
 
   if (victim->p_status == PFREE) 
     {
-      pmessage(whofrom, MINDIV, addr, "nodock: ignored, slot is free");
+      pmessage(whofrom, MINDIV, addr, "dock: ignored, slot is free");
       return;
     }
 
   if (p->p_team != victim->p_team)
     {
-      pmessage(whofrom, MINDIV, addr, "nodock: slot isn't on your team");
+      pmessage(whofrom, MINDIV, addr, "dock: slot isn't on your team");
       return;
     }
 
-  if( !strcmp("on", what) )
+  if( !strcmp("off", what) )
     {
       victim->candock = 0;
       pmessage(whofrom, MINDIV, addr, "Slot %c no longer allowed to dock to SB", *who);
     }
-  else if ( !strcmp("off", what) )
+  else if ( !strcmp("on", what) )
          {
            victim->candock = 1;
            pmessage(whofrom, MINDIV, addr, "Slot %c is allowed to dock to SB", *who);
          }
-       else pmessage(whofrom, MINDIV, addr, "nodock usage: nodock 0 on|off");
+       else pmessage(whofrom, MINDIV, addr, "dock usage: dock 0 on|off");
 }
 
 void do_admin(char *comm, struct message *mess)