mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
93253a7353
commit
b5e80f3507
@ -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);
|
||||
|
@ -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 },
|
||||
|
@ -201,6 +201,7 @@ enum {
|
||||
TXT_FILL_12,
|
||||
|
||||
TXT_IGNORED,
|
||||
TXT_IGNORED_OPTIONS,
|
||||
TXT_UNIGNORED,
|
||||
TXT_IGNORE_NOT_FOUND,
|
||||
TXT_IGNORE_NO_IGNORES,
|
||||
|
Loading…
x
Reference in New Issue
Block a user