* Fixed: Botnet auth messages now propagate correctly throughout the botnet

This commit is contained in:
joonicks
2018-04-21 01:32:53 +02:00
parent 808269bb68
commit b4c6efaf0e
10 changed files with 43 additions and 49 deletions

View File

@@ -97,7 +97,7 @@ void remove_chan(Chan *chan)
if (*pp == chan)
{
*pp = chan->next;
purge_banlist(chan);
purge_linklist((void**)&chan->banlist);
purge_chanusers(chan);
delete_vars(chan->setting,CHANSET_SIZE);
Free(&chan->name);
@@ -350,20 +350,6 @@ void delete_modemask(Chan *chan, char *mask, int mode)
#endif /* IRCD_EXTENSIONS */
void purge_banlist(Chan *chan)
{
Ban *ban,*next;
ban = chan->banlist;
while(ban)
{
next = ban->next;
Free((char**)&ban);
ban = next;
}
chan->banlist = NULL;
}
void channel_massmode(const Chan *chan, char *pattern, int filtmode, char mode, char typechar)
{
ChanUser *cu;