summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-08 10:59:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-08 10:59:47 +0000
commit7e9f47e8f996a4d4d606f48926159f5d3de91ed4 (patch)
tree74515b3bb8565b6668c76b0350b2f36c808d250a /src/fe-common
parent24c4a2e86d46f8e2152bf983d932f0cac2701a1f (diff)
downloadirssi-7e9f47e8f996a4d4d606f48926159f5d3de91ed4.zip
/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
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-messages.c4
1 files changed, 3 insertions, 1 deletions
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);