/* * This program was hacked by Harald Kipp * * Bug reports should be sent to * * harald@os2point.ping.de * harald@haport.sesam.com * Fido: 2:2448/434 * * You may freely copy or redistribute this software. However, * this may not apply to any part of it, if otherwise noted. */ #include #include #include #include #include #include #include "config.h" #include "chanco.h" /* * NEWGROUP * * Creates new active newsgroups. * */ void c_newgroup(int argc, char **argv) { char *group; char mc; if (argc < 2) { lprintf("newgroup: Not enough arguments."); return; } for (argc--, argv++; argc; argc--, argv++) { group = argv[0]; mc = 'y'; if(argc > 1 && stricmp(argv[1], "moderated") == 0) { mc = 'm'; argv++, argc--; } else mc = 'y'; add_active(cfg.activefile, cfg.active_times, group, mc); } }