$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.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
#include "support.h"
#include "config.h"
#include "msgbase.h"
+#include "citserver.h"
#include "tools.h"
#include "room_ops.h"
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")) {
}
+
+/*
+ * 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$";
}