예제 #1
0
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");
}
예제 #2
0
void hilight_text_init(void)
{
	hilight_next = FALSE;
	last_nick_color = 0;

	read_hilight_config();
	settings_add_str("misc", "hilight_color", "8");
	settings_add_bool("misc", "hilight_only_nick", TRUE);

	signal_add_first("print text", (SIGNAL_FUNC) sig_print_text);
	signal_add_first("print text stripped", (SIGNAL_FUNC) sig_print_text_stripped);
        signal_add("setup reread", (SIGNAL_FUNC) read_hilight_config);
	signal_add_last("message public", (SIGNAL_FUNC) sig_message);
	signal_add_last("message private", (SIGNAL_FUNC) sig_message);
	command_bind("hilight", NULL, (SIGNAL_FUNC) cmd_hilight);
	command_bind("dehilight", NULL, (SIGNAL_FUNC) cmd_dehilight);

	command_set_options("hilight", "-color -level -channels nick nonick mask word regexp");
}