From 7e9f47e8f996a4d4d606f48926159f5d3de91ed4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 8 May 2002 10:59:47 +0000 Subject: [PATCH] /SET hilight_nick_matches - NO disables hilighting your own nick at beginning of line. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2760 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-messages.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index 48130103..44c9fb35 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -152,7 +152,8 @@ static void sig_message_public(SERVER_REC *server, const char *msg, if (nickrec == NULL && chanrec != NULL) nickrec = nicklist_find(chanrec, nick); - for_me = nick_match_msg(chanrec, msg, server->nick); + for_me = !settings_get_bool("hilight_nick_matches") ? FALSE : + nick_match_msg(chanrec, msg, server->nick); color = for_me ? NULL : hilight_match_nick(server, target, nick, address, MSGLEVEL_PUBLIC, msg); @@ -624,6 +625,7 @@ void fe_messages_init(void) printnicks = g_hash_table_new((GHashFunc) g_direct_hash, (GCompareFunc) g_direct_equal); + settings_add_bool("lookandfeel", "hilight_nick_matches", TRUE); settings_add_bool("lookandfeel", "emphasis", TRUE); settings_add_bool("lookandfeel", "emphasis_replace", FALSE); settings_add_bool("lookandfeel", "emphasis_multiword", FALSE);