mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/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
This commit is contained in:
parent
b97326279a
commit
6e57a9e94e
@ -3,9 +3,10 @@
|
|||||||
|
|
||||||
-mask: Match only for nick, <text> is a nick mask
|
-mask: Match only for nick, <text> is a nick mask
|
||||||
-regexp: <text> is a regular expression
|
-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)
|
-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
|
-color: Print the message with <color>. color is in %code format
|
||||||
(see docs/formats.txt)
|
(see docs/formats.txt)
|
||||||
-level: Match only for <level> messages, default is
|
-level: Match only for <level> messages, default is
|
||||||
|
@ -474,7 +474,7 @@ static void hilight_print(int index, HILIGHT_REC *rec)
|
|||||||
chans != NULL ? chans : "",
|
chans != NULL ? chans : "",
|
||||||
levelstr != NULL ? levelstr : "",
|
levelstr != NULL ? levelstr : "",
|
||||||
rec->nickmask ? " -mask" : "",
|
rec->nickmask ? " -mask" : "",
|
||||||
rec->fullword ? " -word" : "",
|
rec->fullword ? " -full" : "",
|
||||||
rec->regexp ? " -regexp" : "");
|
rec->regexp ? " -regexp" : "");
|
||||||
g_free_not_null(chans);
|
g_free_not_null(chans);
|
||||||
g_free_not_null(levelstr);
|
g_free_not_null(levelstr);
|
||||||
@ -563,7 +563,7 @@ static void cmd_hilight(const char *data)
|
|||||||
rec->nick = TRUE;
|
rec->nick = TRUE;
|
||||||
|
|
||||||
rec->nickmask = g_hash_table_lookup(optlist, "mask") != NULL;
|
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;
|
rec->regexp = g_hash_table_lookup(optlist, "regexp") != NULL;
|
||||||
|
|
||||||
if (colorarg != NULL) {
|
if (colorarg != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user