void ignore_init(void) { ignores = NULL; nickmatch = nickmatch_init(ignore_nick_cache); time_tag = g_timeout_add(1000, (GSourceFunc) unignore_timeout, NULL); read_ignores(); signal_add("setup reread", (SIGNAL_FUNC) read_ignores); }
void hilight_text_init(void) { settings_add_str("lookandfeel", "hilight_color", "%Y"); settings_add_str("lookandfeel", "hilight_act_color", "%M"); settings_add_level("lookandfeel", "hilight_level", "PUBLIC DCCMSGS"); read_settings(); nickmatch = nickmatch_init(hilight_nick_cache); read_hilight_config(); signal_add_first("print text", (SIGNAL_FUNC) sig_print_text); signal_add("setup reread", (SIGNAL_FUNC) read_hilight_config); signal_add("setup changed", (SIGNAL_FUNC) read_settings); command_bind("hilight", NULL, (SIGNAL_FUNC) cmd_hilight); command_bind("dehilight", NULL, (SIGNAL_FUNC) cmd_dehilight); command_set_options("hilight", "-color -actcolor -level -priority -network -channels nick word line mask full regexp"); }