diff options
author | Patrick Griffis <tingping@tingping.se> | 2016-07-24 18:08:09 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-07-24 18:08:09 -0400 |
commit | 03767ee0f98262220eb13a2fcb1f2fe0963cba3d (patch) | |
tree | 3af3eaeb8ee217a72fee56af61f01e0fe66dc760 /src/common | |
parent | ba872477812bfec457a7b53ac61179dcda6bd0ee (diff) |
Kill fe_set_hilight()
It just duplicates functionality and this fixes: - alert_taskbar chanopt not being respected - tab color being incorrect when highlight print events are eaten
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/fe.h | 1 | ||||
-rw-r--r-- | src/common/inbound.c | 1 | ||||
-rw-r--r-- | src/common/text.c | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/src/common/fe.h b/src/common/fe.h index a748668b..6614055b 100644 --- a/src/common/fe.h +++ b/src/common/fe.h @@ -69,7 +69,6 @@ int fe_input_add (int sok, int flags, void *func, void *data); void fe_input_remove (int tag); void fe_idle_add (void *func, void *data); void fe_set_topic (struct session *sess, char *topic, char *stripped_topic); -void fe_set_hilight (struct session *sess); void fe_set_tab_color (struct session *sess, int col); void fe_flash_window (struct session *sess); void fe_update_mode_buttons (struct session *sess, char mode, char sign); diff --git a/src/common/inbound.c b/src/common/inbound.c index ffc8a3e7..50ef5032 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -319,7 +319,6 @@ is_hilight (char *from, char *text, session *sess, server *serv) sess->nick_said = TRUE; lastact_update (sess); } - fe_set_hilight (sess); return 1; } diff --git a/src/common/text.c b/src/common/text.c index ad6f10ff..2af8ab09 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -2048,6 +2048,7 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d, /* ===Highlighted message=== */ case XP_TE_HCHANACTION: case XP_TE_HCHANMSG: + fe_set_tab_color (sess, 3); if (chanopt_is_set (prefs.hex_input_beep_hilight, sess->alert_beep) && (!prefs.hex_away_omit_alerts || !sess->server->is_away)) sound_beep (sess); if (chanopt_is_set (prefs.hex_input_flash_hilight, sess->alert_taskbar) && (!prefs.hex_away_omit_alerts || !sess->server->is_away)) |