void _modinit(module_t *m) { funserv = service_add("funserv", NULL); service_bind_command(funserv, &funserv_requestbot); service_bind_command(funserv, &funserv_help); }
void _modinit(module_t *m) { chanfix_persist_record_t *rec = mowgli_global_storage_get("atheme.chanfix.main.persist"); chanfix_gather_init(rec); if (rec != NULL) { free(rec); return; } chanfix = service_add("chanfix", NULL); service_bind_command(chanfix, &cmd_chanfix); service_bind_command(chanfix, &cmd_scores); service_bind_command(chanfix, &cmd_info); service_bind_command(chanfix, &cmd_help); service_bind_command(chanfix, &cmd_mark); hook_add_event("channel_can_register"); hook_add_channel_can_register(chanfix_can_register); add_bool_conf_item("AUTOFIX", &chanfix->conf_table, 0, &chanfix_do_autofix, false); chanfix_autofix_timer = mowgli_timer_add(base_eventloop, "chanfix_autofix", chanfix_autofix_ev, NULL, 60); }
void _modinit(module_t * m) { service_t *svs; service_named_bind_command("chanserv", &cmd_dice); service_named_bind_command("chanserv", &cmd_calc); svs = service_find("gameserv"); if (!svs) return; service_bind_command(svs, &cmd_dice); service_bind_command(svs, &cmd_calc); add_uint_conf_item("MAX_ROLLS", &svs->conf_table, 0, &max_rolls, 1, INT_MAX, 10); }
void set_init(void) { service_bind_command(groupsvs, &gs_set); gs_set_cmdtree = mowgli_patricia_create(strcasecanon); command_add(&gs_set_email, gs_set_cmdtree); command_add(&gs_set_url, gs_set_cmdtree); command_add(&gs_set_description, gs_set_cmdtree); command_add(&gs_set_channel, gs_set_cmdtree); command_add(&gs_set_open, gs_set_cmdtree); command_add(&gs_set_public, gs_set_cmdtree); }
void _modinit(module_t *m) { loveserv = service_add("LoveServ", NULL); service_bind_command(loveserv, &ls_admirer); service_bind_command(loveserv, &ls_rose); service_bind_command(loveserv, &ls_chocolate); service_bind_command(loveserv, &ls_candy); service_bind_command(loveserv, &ls_hug); service_bind_command(loveserv, &ls_kiss); service_bind_command(loveserv, &ls_lovenote); service_bind_command(loveserv, &ls_apology); service_bind_command(loveserv, &ls_thankyou); service_bind_command(loveserv, &ls_spank); service_bind_command(loveserv, &ls_chocobo); service_bind_command(loveserv, &ls_help); }
void _modinit(module_t *m) { siteserv = service_add("siteserv", NULL); service_bind_command(siteserv, &siteserv_help); }