1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-11 03:44:15 -04:00

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
parent 93253a7353
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);

View File

@ -233,7 +233,8 @@ FORMAT_REC fecommon_core_formats[] = {
/* ---- */
{ NULL, "Ignores", 0 },
{ "ignored", "Ignoring {hilight $1} from {nick $0} [$2]", 3, { 0, 0, 0 } },
{ "ignored", "Ignoring {hilight $1} from {nick $0}", 2, { 0, 0 } },
{ "ignored_options", "Ignoring {hilight $1} from {nick $0} {comment $2}", 3, { 0, 0, 0 } },
{ "unignored", "Unignored {nick $0}", 1, { 0 } },
{ "ignore_not_found", "{nick $0} is not being ignored", 1, { 0 } },
{ "ignore_no_ignores", "There are no ignores", 0 },

View File

@ -201,6 +201,7 @@ enum {
TXT_FILL_12,
TXT_IGNORED,
TXT_IGNORED_OPTIONS,
TXT_UNIGNORED,
TXT_IGNORE_NOT_FOUND,
TXT_IGNORE_NO_IGNORES,