From 8d1047d4e9ae129d88ff7654157fe6b3babcf381 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 8 Dec 2018 13:06:41 +0100 Subject: [PATCH] Remove old function is_irc_banned(). Ahhh, WebTV times.. --- src/channel.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/channel.c b/src/channel.c index 3fbb2a091..cded53a60 100644 --- a/src/channel.c +++ b/src/channel.c @@ -518,27 +518,6 @@ Ban *is_banned_with_nick(aClient *sptr, aChannel *chptr, int type, char *nick) return ban; } -/* - * Checks if the "user" IRC is banned, used by +mu. - */ -static int is_irc_banned(aChannel *chptr) -{ - Ban *tmp; - /* Check for this user, ident/host are "illegal" on purpose */ - char *check = "IRC!\001@\001"; - - for (tmp = chptr->banlist; tmp; tmp = tmp->next) - if (match(tmp->banstr, check) == 0) - { - /* Ban found, now check for +e */ - for (tmp = chptr->exlist; tmp; tmp = tmp->next) - if (match(tmp->banstr, check) == 0) - return 0; /* In exception list */ - return 1; - } - return 0; -} - /* * adds a user to a channel by adding another link to the channels member * chain.