When ignoring without any options, don't print the []

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2964 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-10-16 19:35:09 +00:00 committed by cras
commit b5e80f3507
3 changed files with 5 additions and 2 deletions

View file

@ -74,7 +74,8 @@ static void ignore_print(int index, IGNORE_REC *rec)
levels != NULL ? levels : "", options->str);
} else {
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
TXT_IGNORED, key != NULL ? key : "",
options->len > 0 ? TXT_IGNORED_OPTIONS : TXT_IGNORED,
key != NULL ? key : "",
levels != NULL ? levels : "", options->str);
}
g_string_free(options, TRUE);