static int _modinit(void) { iterate_clients_ev = rb_event_add("safelist_iterate_clients", safelist_iterate_clients, NULL, 3); /* ELIST=[tokens]: * * M = mask search * N = !mask search * U = user count search (< >) * C = creation time search (C> C<) * T = topic search (T> T<) */ add_isupport("SAFELIST", isupport_string, ""); add_isupport("ELIST", isupport_string, "CTU"); return 0; }
int main(int argc, char **argv) { res_helper = rb_helper_child(parse_request, error_cb, NULL, NULL, NULL, 256); /* XXX fix me */ if(res_helper == NULL) { fprintf(stderr, "This is ircd-ratbox resolver. You know you aren't supposed to run me directly?\n"); fprintf(stderr, "You get an Id tag for this: $Id$\n"); fprintf(stderr, "Bleep blorp.\n"); exit(1); } rb_set_time(); setup_signals(); init_resolver(); rb_init_prng(NULL, RB_PRNG_DEFAULT); rb_event_add("check_rehash", check_rehash, NULL, 5); report_nameservers(); rb_helper_loop(res_helper, 0); }