* prep for new network node infrastructure
authorArt Cancro <ajc@citadel.org>
Sun, 5 Aug 2001 23:54:14 +0000 (23:54 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 5 Aug 2001 23:54:14 +0000 (23:54 +0000)
citadel/ChangeLog
citadel/control.c
citadel/serv_network.c
citadel/serv_network.h

index 654de413e42f557bcf68852a19b94a144aa54085..97e46eb95ebe227d1a5758606e94a1f5efd611d3 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 580.19  2001/08/05 23:54:14  ajc
+ * prep for new network node infrastructure
+
  Revision 580.18  2001/08/03 16:53:21  ajc
  * Added some more "break" statements to the main switch..case loop in
    citadel.c where they were needed.
@@ -2656,3 +2659,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 5a154b14f2c9f3d5a94f7126df9a6475312967a2..94c3ec8c4e1049cd471949dd432ac856d0685774 100644 (file)
@@ -36,6 +36,7 @@
 #include "support.h"
 #include "config.h"
 #include "msgbase.h"
+#include "citserver.h"
 #include "tools.h"
 #include "room_ops.h"
 
@@ -143,16 +144,7 @@ void cmd_conf(char *argbuf) {
        char *confptr;
        char confname[SIZ];
 
-       if (!(CC->logged_in)) {
-               cprintf("%d Not logged in.\n",ERROR+NOT_LOGGED_IN);
-               return;
-               }
-
-       if (CC->usersupp.axlevel < 6) {
-               cprintf("%d Higher access required.\n",
-                       ERROR+HIGHER_ACCESS_REQUIRED);
-               return;
-               }
+       if (CtdlAccessCheck(ac_aide)) return;
 
        extract(cmd, argbuf, 0);
        if (!strcasecmp(cmd, "GET")) {
index 6aa5d9481d4454096b551f4ddcf120fb0ba76c48..9c428c8c271ed1462d5d09c11f78078eb7bdb9b7 100644 (file)
@@ -340,10 +340,43 @@ void network_do_queue(void) {
 }
 
 
+
+/*
+ * Add, change, or delete network nodes
+ */
+void cmd_node(char *argbuf) {
+       char command[SIZ];
+       char nodename[SIZ];
+       char secret[SIZ];
+       FILE *fp;
+
+       if (CtdlAccessCheck(ac_aide)) return;
+
+       extract(command, argbuf, 0);
+
+       if (!strcasecmp(command, "add")) {
+               cprintf("%d bloopyblard\n", ERROR);
+               return;
+       }
+       
+       else {
+               cprintf("%d Illegal option(s) specified.\n",
+                       ERROR+ILLEGAL_VALUE);
+               return;
+       }
+}
+
+
+
+
+/*
+ * Module entry point
+ */
 char *Dynamic_Module_Init(void)
 {
        CtdlRegisterProtoHook(cmd_gnet, "GNET", "Get network config");
        CtdlRegisterProtoHook(cmd_snet, "SNET", "Get network config");
+       CtdlRegisterProtoHook(cmd_node, "NODE", "Modify network nodes");
        CtdlRegisterSessionHook(network_do_queue, EVT_TIMER);
        return "$Id$";
 }
index 3fed171cf3b259ccb3bf8aa87a62863d70846da7..d01639db9deeca0d662c73543737291c770b06be 100644 (file)
@@ -1,4 +1,3 @@
-
 struct namelist {
        struct namelist *next;
        char name[SIZ];