summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-16 19:35:09 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-16 19:35:09 +0000
commitb5e80f35078e78671c918f110f07be531c86b0e7 (patch)
treea3c506661893ab64cc93b6d4d4aff465b4d3fe35 /src/fe-common
parent93253a7353e7c389f7a5a03ba86edb4bb532bff7 (diff)
downloadirssi-b5e80f35078e78671c918f110f07be531c86b0e7.zip
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
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-ignore.c3
-rw-r--r--src/fe-common/core/module-formats.c3
-rw-r--r--src/fe-common/core/module-formats.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c
index 3c757b49..4621ab26 100644
--- a/src/fe-common/core/fe-ignore.c
+++ b/src/fe-common/core/fe-ignore.c
@@ -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);
diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c
index a7fb20d0..2d4f02e1 100644
--- a/src/fe-common/core/module-formats.c
+++ b/src/fe-common/core/module-formats.c
@@ -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 },
diff --git a/src/fe-common/core/module-formats.h b/src/fe-common/core/module-formats.h
index 016f4d29..7cd46bab 100644
--- a/src/fe-common/core/module-formats.h
+++ b/src/fe-common/core/module-formats.h
@@ -201,6 +201,7 @@ enum {
TXT_FILL_12,
TXT_IGNORED,
+ TXT_IGNORED_OPTIONS,
TXT_UNIGNORED,
TXT_IGNORE_NOT_FOUND,
TXT_IGNORE_NO_IGNORES,