From c7274cb00e46ab55adfaa2cc7aae8c30709b9905 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 May 2001 13:19:16 +0000 Subject: [PATCH] /IGNORE now defaults to ALL level git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1475 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-ignore.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c index 7c10893f..c291e847 100644 --- a/src/fe-common/core/fe-ignore.c +++ b/src/fe-common/core/fe-ignore.c @@ -84,9 +84,9 @@ static void cmd_ignore_show(void) } /* SYNTAX: IGNORE [-regexp | -word] [-pattern ] [-except] [-replies] - [-channels ] [-time ] + [-channels ] [-time ] [] IGNORE [-regexp | -word] [-pattern ] [-except] [-replies] - [-time ] */ + [-time ] [] */ static void cmd_ignore(const char *data) { GHashTable *optlist; @@ -108,7 +108,8 @@ static void cmd_ignore(const char *data) patternarg = g_hash_table_lookup(optlist, "pattern"); chanarg = g_hash_table_lookup(optlist, "channels"); - if (*levels == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); + if (*mask == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); + if (*levels == '\0') levels = "ALL"; if (active_win->active_server != NULL && active_win->active_server->ischannel(mask)) {