mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
changed command-line -case to -matchcase
This commit is contained in:
parent
d8a6e66699
commit
ddd5416430
@ -10,7 +10,7 @@
|
||||
-line: Highlights the whole line.
|
||||
-mask: Highlights all messages from users matching the mask.
|
||||
-full: The text must match the full word.
|
||||
-case: The text must match case.
|
||||
-matchcase: The text must match case.
|
||||
-regexp: The text is a regular expression.
|
||||
-color: The color the display the highlight in.
|
||||
-actcolor: The color to mark the highlight activity in the statusbar.
|
||||
|
@ -504,7 +504,7 @@ static void hilight_print(int index, HILIGHT_REC *rec)
|
||||
|
||||
if (rec->nickmask) g_string_append(options, "-mask ");
|
||||
if (rec->fullword) g_string_append(options, "-full ");
|
||||
if (rec->case_sensitive) g_string_append(options, "-case ");
|
||||
if (rec->case_sensitive) g_string_append(options, "-matchcase ");
|
||||
if (rec->regexp) {
|
||||
g_string_append(options, "-regexp ");
|
||||
#ifdef HAVE_REGEX_H
|
||||
@ -553,7 +553,7 @@ static void cmd_hilight_show(void)
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_HILIGHT_FOOTER);
|
||||
}
|
||||
|
||||
/* SYNTAX: HILIGHT [-nick | -word | -line] [-mask | -full | -case | -regexp]
|
||||
/* SYNTAX: HILIGHT [-nick | -word | -line] [-mask | -full | -matchcase | -regexp]
|
||||
[-color <color>] [-actcolor <color>] [-level <level>]
|
||||
[-network <network>] [-channels <channels>] <text> */
|
||||
static void cmd_hilight(const char *data)
|
||||
@ -621,7 +621,7 @@ static void cmd_hilight(const char *data)
|
||||
rec->nickmask = g_hash_table_lookup(optlist, "mask") != NULL;
|
||||
rec->fullword = g_hash_table_lookup(optlist, "full") != NULL;
|
||||
rec->regexp = g_hash_table_lookup(optlist, "regexp") != NULL;
|
||||
rec->case_sensitive = g_hash_table_lookup(optlist, "case") != NULL;
|
||||
rec->case_sensitive = g_hash_table_lookup(optlist, "matchcase") != NULL;
|
||||
|
||||
if (colorarg != NULL) {
|
||||
g_free_and_null(rec->color);
|
||||
@ -728,7 +728,7 @@ void hilight_text_init(void)
|
||||
|
||||
command_bind("hilight", NULL, (SIGNAL_FUNC) cmd_hilight);
|
||||
command_bind("dehilight", NULL, (SIGNAL_FUNC) cmd_dehilight);
|
||||
command_set_options("hilight", "-color -actcolor -level -priority -network -channels nick word line mask full regexp case");
|
||||
command_set_options("hilight", "-color -actcolor -level -priority -network -channels nick word line mask full regexp matchcase");
|
||||
}
|
||||
|
||||
void hilight_text_deinit(void)
|
||||
|
Loading…
Reference in New Issue
Block a user