mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
bugfixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@857 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8dd24a4444
commit
2912532875
@ -137,6 +137,12 @@ static HILIGHT_REC *hilight_find(const char *text, char **channels)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sig_print_text(TEXT_DEST_REC *dest, const char *str)
|
static void sig_print_text(TEXT_DEST_REC *dest, const char *str)
|
||||||
|
{
|
||||||
|
if (hilight_next)
|
||||||
|
signal_stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void sig_print_text_finished(TEXT_DEST_REC *dest, const char *str)
|
||||||
{
|
{
|
||||||
if (hilight_next) {
|
if (hilight_next) {
|
||||||
hilight_next = FALSE;
|
hilight_next = FALSE;
|
||||||
@ -481,6 +487,7 @@ void hilight_text_init(void)
|
|||||||
settings_add_bool("misc", "hilight_only_nick", TRUE);
|
settings_add_bool("misc", "hilight_only_nick", TRUE);
|
||||||
|
|
||||||
signal_add_first("print text", (SIGNAL_FUNC) sig_print_text);
|
signal_add_first("print text", (SIGNAL_FUNC) sig_print_text);
|
||||||
|
signal_add_first("print text finished", (SIGNAL_FUNC) sig_print_text_finished);
|
||||||
signal_add_first("print text stripped", (SIGNAL_FUNC) sig_print_text_stripped);
|
signal_add_first("print text stripped", (SIGNAL_FUNC) sig_print_text_stripped);
|
||||||
signal_add("setup reread", (SIGNAL_FUNC) read_hilight_config);
|
signal_add("setup reread", (SIGNAL_FUNC) read_hilight_config);
|
||||||
signal_add_last("message public", (SIGNAL_FUNC) sig_message);
|
signal_add_last("message public", (SIGNAL_FUNC) sig_message);
|
||||||
@ -496,6 +503,7 @@ void hilight_text_deinit(void)
|
|||||||
hilights_destroy_all();
|
hilights_destroy_all();
|
||||||
|
|
||||||
signal_remove("print text", (SIGNAL_FUNC) sig_print_text);
|
signal_remove("print text", (SIGNAL_FUNC) sig_print_text);
|
||||||
|
signal_remove("print text finished", (SIGNAL_FUNC) sig_print_text_finished);
|
||||||
signal_remove("print text stripped", (SIGNAL_FUNC) sig_print_text_stripped);
|
signal_remove("print text stripped", (SIGNAL_FUNC) sig_print_text_stripped);
|
||||||
signal_remove("setup reread", (SIGNAL_FUNC) read_hilight_config);
|
signal_remove("setup reread", (SIGNAL_FUNC) read_hilight_config);
|
||||||
signal_remove("message public", (SIGNAL_FUNC) sig_message);
|
signal_remove("message public", (SIGNAL_FUNC) sig_message);
|
||||||
|
@ -273,7 +273,7 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text)
|
|||||||
it would be written to log files too */
|
it would be written to log files too */
|
||||||
tmp = format_get_line_start(current_theme, dest);
|
tmp = format_get_line_start(current_theme, dest);
|
||||||
str = format_add_linestart(text, tmp);
|
str = format_add_linestart(text, tmp);
|
||||||
g_free(tmp);
|
g_free_not_null(tmp);
|
||||||
|
|
||||||
format_send_to_gui(dest, str);
|
format_send_to_gui(dest, str);
|
||||||
g_free(str);
|
g_free(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user