void _modinit(module_t* m) { crypt_register(&pbkdf2v2_crypt_impl); add_subblock_top_conf("PBKDF2V2", &conf_pbkdf2v2_table); add_conf_item("DIGEST", &conf_pbkdf2v2_table, c_ci_pbkdf2v2_digest); add_uint_conf_item("ROUNDS", &conf_pbkdf2v2_table, 0, &pbkdf2v2_rounds, PBKDF2_C_MIN, PBKDF2_C_MAX, PBKDF2_C_DEF); }
void _modinit(module_t *m) { MODULE_USE_SYMBOL(httpd_path_handlers, "misc/httpd", "httpd_path_handlers"); hook_add_event("config_ready"); hook_add_config_ready(xmlrpc_config_ready); xmlrpc_config.path = sstrdup("/xmlrpc"); add_subblock_top_conf("XMLRPC", &conf_xmlrpc_table); add_dupstr_conf_item("PATH", &conf_xmlrpc_table, &xmlrpc_config.path); xmlrpc_set_buffer(dump_buffer); xmlrpc_set_options(XMLRPC_HTTP_HEADER, XMLRPC_OFF); xmlrpc_register_method("atheme.login", xmlrpcmethod_login); xmlrpc_register_method("atheme.logout", xmlrpcmethod_logout); xmlrpc_register_method("atheme.command", xmlrpcmethod_command); }
void _modinit(module_t *m) { add_subblock_top_conf("NICKLISTS", &conft); add_conf_item("ALL", &conft, nicklist_config_handler_all); add_conf_item("NICK", &conft, nicklist_config_handler_nick); add_conf_item("USER", &conft, nicklist_config_handler_user); add_conf_item("REAL", &conft, nicklist_config_handler_real); akillalllist = mowgli_patricia_create(strcasecanon); akillnicklist = mowgli_patricia_create(strcasecanon); akilluserlist = mowgli_patricia_create(strcasecanon); akillreallist = mowgli_patricia_create(strcasecanon); hook_add_event("user_add"); hook_add_user_add(aknl_nickhook); hook_add_event("user_nickchange"); hook_add_user_nickchange(aknl_nickhook); }