mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
/IGNORE didn't show if it had -replies flag
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@462 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
767aadfb7f
commit
1b736a68a7
2 changed files with 11 additions and 5 deletions
|
|
@ -104,17 +104,23 @@ static void ignore_split_levels(const char *levels, int *level, int *xlevel)
|
|||
|
||||
static void ignore_print(int index, IGNORE_REC *rec)
|
||||
{
|
||||
GString *options;
|
||||
char *key, *levels;
|
||||
|
||||
key = ignore_get_key(rec);
|
||||
levels = ignore_get_levels(rec->level, rec->except_level);
|
||||
|
||||
options = g_string_new(NULL);
|
||||
if (rec->regexp) g_string_sprintfa(options, "-regexp ");
|
||||
if (rec->fullword) g_string_sprintfa(options, "-word ");
|
||||
if (rec->replies) g_string_sprintfa(options, "-replies ");
|
||||
if (options->len > 1) g_string_truncate(options, options->len-1);
|
||||
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
|
||||
IRCTXT_IGNORE_LINE, index,
|
||||
key != NULL ? key : "",
|
||||
levels != NULL ? levels : "",
|
||||
rec->regexp ? " -regexp" : "",
|
||||
rec->fullword ? " -word" : "",
|
||||
rec->replies ? " -replies" : "");
|
||||
levels != NULL ? levels : "", options->str);
|
||||
g_string_free(options, TRUE);
|
||||
g_free(key);
|
||||
g_free(levels);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue