mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Better print /HILIGHT lines. Also cleanup for /IGNORE lines.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2947 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
45883d7f36
commit
fae3ae2bfc
3 changed files with 34 additions and 9 deletions
|
|
@ -53,16 +53,16 @@ static void ignore_print(int index, IGNORE_REC *rec)
|
|||
levels = bits2level(rec->level);
|
||||
|
||||
options = g_string_new(NULL);
|
||||
if (rec->exception) g_string_sprintfa(options, "-except ");
|
||||
if (rec->exception) g_string_append(options, "-except ");
|
||||
if (rec->regexp) {
|
||||
g_string_sprintfa(options, "-regexp ");
|
||||
g_string_append(options, "-regexp ");
|
||||
#ifdef HAVE_REGEX_H
|
||||
if (!rec->regexp_compiled)
|
||||
g_string_sprintfa(options, "[INVALID!] ");
|
||||
g_string_append(options, "[INVALID!] ");
|
||||
#endif
|
||||
}
|
||||
if (rec->fullword) g_string_sprintfa(options, "-full ");
|
||||
if (rec->replies) g_string_sprintfa(options, "-replies ");
|
||||
if (rec->fullword) g_string_append(options, "-full ");
|
||||
if (rec->replies) g_string_append(options, "-replies ");
|
||||
if (rec->pattern != NULL)
|
||||
g_string_sprintfa(options, "-pattern %s ", rec->pattern);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue