diff options
author | Timo Sirainen <cras@irssi.org> | 2004-07-11 21:31:49 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-07-11 21:31:49 +0000 |
commit | ab3ba54ab438b2487fb5dfe169ef21975855974c (patch) | |
tree | f404ad2216a0a16f5fe1daea862bf254a90f77b4 /src/fe-common/core/fe-ignore.c | |
parent | d9cc888daa56423c8630898df0e0d003337de066 (diff) | |
download | irssi-ab3ba54ab438b2487fb5dfe169ef21975855974c.zip |
s/ircnet/network/ - patch by Joost Vunderink
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3270 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-ignore.c')
-rw-r--r-- | src/fe-common/core/fe-ignore.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c index 3b834299..66e9f0fc 100644 --- a/src/fe-common/core/fe-ignore.c +++ b/src/fe-common/core/fe-ignore.c @@ -64,7 +64,7 @@ static void ignore_print(int index, IGNORE_REC *rec) if (rec->fullword) g_string_append(options, "-full "); if (rec->replies) g_string_append(options, "-replies "); if (rec->servertag != NULL) - g_string_sprintfa(options, "-ircnet %s ", rec->servertag); + g_string_sprintfa(options, "-network %s ", rec->servertag); if (rec->pattern != NULL) g_string_sprintfa(options, "-pattern %s ", rec->pattern); @@ -107,9 +107,10 @@ static void cmd_ignore_show(void) } /* SYNTAX: IGNORE [-regexp | -full] [-pattern <pattern>] [-except] [-replies] - [-ircnet <ircnet>] [-channels <channel>] [-time <secs>] <mask> [<levels>] + [-network <network>] [-channels <channel>] [-time <secs>] <mask> [<levels>] IGNORE [-regexp | -full] [-pattern <pattern>] [-except] [-replies] - [-ircnet <ircnet>] [-time <secs>] <channels> [<levels>] */ + [-network <network>] [-time <secs>] <channels> [<levels>] */ +/* NOTE: -network replaces the old -ircnet flag. */ static void cmd_ignore(const char *data) { GHashTable *optlist; @@ -130,7 +131,10 @@ static void cmd_ignore(const char *data) patternarg = g_hash_table_lookup(optlist, "pattern"); chanarg = g_hash_table_lookup(optlist, "channels"); - servertag = g_hash_table_lookup(optlist, "ircnet"); + servertag = g_hash_table_lookup(optlist, "network"); + /* Allow -ircnet for backwards compatibility */ + if (!servertag) + servertag = g_hash_table_lookup(optlist, "ircnet"); if (*mask == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); if (*levels == '\0') levels = "ALL"; @@ -258,7 +262,7 @@ void fe_ignore_init(void) signal_add("ignore created", (SIGNAL_FUNC) sig_ignore_created); signal_add("ignore changed", (SIGNAL_FUNC) sig_ignore_created); - command_set_options("ignore", "regexp full except replies -ircnet -time -pattern -channels"); + command_set_options("ignore", "regexp full except replies -network -ircnet -time -pattern -channels"); } void fe_ignore_deinit(void) |