1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 08:03:13 +02:00

Remove old function is_irc_banned(). Ahhh, WebTV times..

This commit is contained in:
Bram Matthys
2018-12-08 13:06:41 +01:00
parent 84686f02bb
commit 8d1047d4e9
-21
View File
@@ -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.