1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 09:03:12 +02:00

don't +b if banlist is full @ chanmode +f textflood kickban

This commit is contained in:
Bram Matthys
2015-07-25 18:09:52 +02:00
parent f7ba695625
commit 55af9ec0a9
+7 -5
View File
@@ -1071,11 +1071,13 @@ int check_for_chan_flood(aClient *sptr, aChannel *chptr)
if (banthem)
{ /* ban. */
sprintf(mask, "*!*@%s", GetHost(sptr));
add_listmode(&chptr->banlist, &me, chptr, mask);
sendto_server(&me, 0, 0, ":%s MODE %s +b %s 0",
me.name, chptr->chname, mask);
sendto_channel_butserv(chptr, &me,
":%s MODE %s +b %s", me.name, chptr->chname, mask);
if (add_listmode(&chptr->banlist, &me, chptr, mask) == 0)
{
sendto_server(&me, 0, 0, ":%s MODE %s +b %s 0",
me.name, chptr->chname, mask);
sendto_channel_butserv(chptr, &me,
":%s MODE %s +b %s", me.name, chptr->chname, mask);
} /* else.. ban list is full */
}
sendto_channel_butserv(chptr, &me,
":%s KICK %s %s :%s", me.name,