From a914922f36aa6f99bee5796fec56e5a0a91f7c46 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 11 Jun 2000 00:03:28 +0000 Subject: Check ignores when printing net split messages. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@319 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-netsplit.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3