diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-11 00:03:28 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-11 00:03:28 +0000 |
commit | a914922f36aa6f99bee5796fec56e5a0a91f7c46 (patch) | |
tree | 02c867de764b800778d9f6dcfdcb8c312d5ca336 /src | |
parent | 08af8081d089bbedc2add1cc422ad4f7a38b210c (diff) | |
download | irssi-a914922f36aa6f99bee5796fec56e5a0a91f7c46.zip |
Check ignores when printing net split messages.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@319 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/irc/fe-netsplit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c index 570751b9..e3cd9e30 100644 --- a/src/fe-common/irc/fe-netsplit.c +++ b/src/fe-common/irc/fe-netsplit.c @@ -22,9 +22,11 @@ #include "module-formats.h" #include "signals.h" #include "commands.h" +#include "levels.h" #include "settings.h" -#include "levels.h" +#include "irc-server.h" +#include "ignore.h" #include "netsplit.h" #define SPLIT_WAIT_TIME 2 /* how many seconds to wait for the QUIT split messages to stop */ @@ -54,6 +56,7 @@ typedef struct { } TEMP_SPLIT_CHAN_REC; typedef struct { + IRC_SERVER_REC *server_rec; NETSPLIT_SERVER_REC *server; GSList *channels; } TEMP_SPLIT_REC; @@ -84,6 +87,10 @@ static void get_server_splits(void *key, NETSPLIT_REC *split, TEMP_SPLIT_REC *re for (tmp = split->channels; tmp != NULL; tmp = tmp->next) { NETSPLIT_CHAN_REC *splitchan = tmp->data; + if (ignore_check(rec->server_rec, split->nick, split->address, + splitchan->name, "", MSGLEVEL_QUITS)) + continue; + chanrec = find_split_chan(rec, splitchan->name); if (chanrec == NULL) { chanrec = g_new0(TEMP_SPLIT_CHAN_REC, 1); @@ -139,6 +146,7 @@ static int check_server_splits(IRC_SERVER_REC *server) for (tmp = server->split_servers; tmp != NULL; tmp = tmp->next) { NETSPLIT_SERVER_REC *sserver = tmp->data; + rec.server_rec = server; rec.server = sserver; rec.channels = NULL; |