$Log$
+ Revision 580.39 2001/09/08 18:58:38 ajc
+ * More changes to the new networker. Added client command for room sharing.
+
Revision 580.38 2001/09/07 04:05:27 ajc
* You guessed it: still more code for the new networker.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
break;
case 87:
- mailing_list_management();
+ network_config_management("listrecp",
+ "Mailing list recipients");
+ break;
+
+ case 89:
+ network_config_management("ignet_push_share",
+ "Nodes with which we share this room");
break;
case 88:
cmd=85,2,&.,&Aide,&Terminate server,&Now
cmd=86,2,&.,&Aide,&Terminate server,&Scheduled
cmd=87,1,&.,&Aide,mailing &List management
+cmd=89,1,&.,&Aide,&Network room sharing
cmd=29,0,&.,&Terminate,and &Quit
cmd=30,0,&.,&Terminate,and &Stay online
/*
- * Edit mailing list configuration
+ * Edit network configuration for room sharing, mailing lists, etc.
*/
-void mailing_list_management(void) {
+void network_config_management(char *entrytype, char *comment) {
char filename[PATH_MAX];
char changefile[PATH_MAX];
int e_ex_code;
return;
}
- fprintf(tempfp, "# Mailing list recipients for: %s\n", room_name);
- fprintf(tempfp, "# Specify recipients one per line.\n"
+ fprintf(tempfp, "# Configuration for room: %s\n", room_name);
+ fprintf(tempfp, "# %s\n", comment);
+ fprintf(tempfp, "# Specify one per line.\n"
"\n\n");
serv_puts("GNET");
if (buf[0] == '1') {
while(serv_gets(buf), strcmp(buf, "000")) {
extract(instr, buf, 0);
- if (!strcasecmp(instr, "listrecp")) {
+ if (!strcasecmp(instr, entrytype)) {
extract(addr, buf, 1);
fprintf(tempfp, "%s\n", addr);
}
if (buf[0] == '1') {
while(serv_gets(buf), strcmp(buf, "000")) {
extract(instr, buf, 0);
- if (strcasecmp(instr, "listrecp")) {
+ if (strcasecmp(instr, entrytype)) {
fprintf(changefp, "%s\n", buf);
}
}
}
striplt(buf);
if (strlen(buf) > 0) {
- fprintf(changefp, "listrecp|%s\n", buf);
+ fprintf(changefp, "%s|%s\n", entrytype, buf);
}
}
fclose(tempfp);
int room_prompt(int qrflags);
void do_internet_configuration(void);
void do_ignet_configuration(void);
-void mailing_list_management(void);
+void network_config_management(char *entrytype, char *comment);
if (msg->cm_fields['D'] != NULL) {
if (strcasecmp(msg->cm_fields['D'], config.c_nodename)) {
- /* FIXME route the message, stupid */
+ if (is_valid_node(NULL, msg->cm_fields['D']) == 0) {
+ /* FIXME route the message, stupid */
+
+
+ }
+
+ else { /* invalid destination node name */
+
+ /* FIXME bounce the msg */
+
+ }
}
}