4 * A server-side module for Citadel designed to filter idiots off the network.
6 * Copyright (c) 2002 / released under the GNU General Public License
17 #include <sys/types.h>
19 #if TIME_WITH_SYS_TIME
20 # include <sys/time.h>
24 # include <sys/time.h>
35 #include "sysdep_decls.h"
36 #include "citserver.h"
40 #include "dynloader.h"
49 * This handler detects whether the user is attempting to save a new
50 * vCard as part of his/her personal configuration, and handles the replace
51 * function accordingly (delete the user's existing vCard in the config room
52 * and in the global address book).
54 int filter_the_idiots(struct CtdlMessage *msg, char *target_room) {
60 /* FIXME ... write it! In the meantime, here's a temporary fix */
62 if (msg->cm_fields['A'] != NULL) {
63 if (!strcasecmp(msg->cm_fields['A'],
64 "Curly Surmudgeon")) {
73 char *Dynamic_Module_Init(void)
75 CtdlRegisterNetprocHook(filter_the_idiots);