1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

/IGNORE now defaults to ALL level

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1475 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-11 13:19:16 +00:00 committed by cras
parent 912cf63c07
commit c7274cb00e

View File

@ -84,9 +84,9 @@ static void cmd_ignore_show(void)
} }
/* SYNTAX: IGNORE [-regexp | -word] [-pattern <pattern>] [-except] [-replies] /* SYNTAX: IGNORE [-regexp | -word] [-pattern <pattern>] [-except] [-replies]
[-channels <channel>] [-time <secs>] <mask> <levels> [-channels <channel>] [-time <secs>] <mask> [<levels>]
IGNORE [-regexp | -word] [-pattern <pattern>] [-except] [-replies] IGNORE [-regexp | -word] [-pattern <pattern>] [-except] [-replies]
[-time <secs>] <channels> <levels> */ [-time <secs>] <channels> [<levels>] */
static void cmd_ignore(const char *data) static void cmd_ignore(const char *data)
{ {
GHashTable *optlist; GHashTable *optlist;
@ -108,7 +108,8 @@ static void cmd_ignore(const char *data)
patternarg = g_hash_table_lookup(optlist, "pattern"); patternarg = g_hash_table_lookup(optlist, "pattern");
chanarg = g_hash_table_lookup(optlist, "channels"); 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 && if (active_win->active_server != NULL &&
active_win->active_server->ischannel(mask)) { active_win->active_server->ischannel(mask)) {