summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-17 06:58:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-17 06:58:13 +0000
commit6e57a9e94ef3b64db7edadc0317a920c5e840bc9 (patch)
treec5df25c66c7d31d5c21530859a30450b5355b128
parentb97326279a1e59022c7eb1e69350446704a8591f (diff)
downloadirssi-6e57a9e94ef3b64db7edadc0317a920c5e840bc9.zip
/HILIGHT -full didn't work, and -word was treated as -word + -full. Updated
/HELP hilight. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1408 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--docs/help/in/hilight.in5
-rw-r--r--src/fe-common/core/hilight-text.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/docs/help/in/hilight.in b/docs/help/in/hilight.in
index 2d084fad..a38d10c9 100644
--- a/docs/help/in/hilight.in
+++ b/docs/help/in/hilight.in
@@ -3,9 +3,10 @@
-mask: Match only for nick, <text> is a nick mask
-regexp: <text> is a regular expression
- -word: <text> must match to full words
+ -full: <text> must match to full words
-nick: Hilight only the nick, not the whole line (default)
- -nonick: Hilight the whole line with the hilight color.
+ -word: Hilight only the word (default with non-public messages)
+ -line: Hilight the whole line with the hilight color.
-color: Print the message with <color>. color is in %code format
(see docs/formats.txt)
-level: Match only for <level> messages, default is
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 80ca2d03..197957f6 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -474,7 +474,7 @@ static void hilight_print(int index, HILIGHT_REC *rec)
chans != NULL ? chans : "",
levelstr != NULL ? levelstr : "",
rec->nickmask ? " -mask" : "",
- rec->fullword ? " -word" : "",
+ rec->fullword ? " -full" : "",
rec->regexp ? " -regexp" : "");
g_free_not_null(chans);
g_free_not_null(levelstr);
@@ -563,7 +563,7 @@ static void cmd_hilight(const char *data)
rec->nick = TRUE;
rec->nickmask = g_hash_table_lookup(optlist, "mask") != NULL;
- rec->fullword = g_hash_table_lookup(optlist, "word") != NULL;
+ rec->fullword = g_hash_table_lookup(optlist, "full") != NULL;
rec->regexp = g_hash_table_lookup(optlist, "regexp") != NULL;
if (colorarg != NULL) {