X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_endburst.c;h=46d51ae0a105ad8f84bc684ef35dcbb081ad982b;hb=refs%2Fheads%2Fupstream;hp=d13be04c5cc1c050524cb9e2a439f25f0a262960;hpb=56f512008e81aeae915b2b7f6bcdd54b549188d3;p=ircu2.10.12-pk.git diff --git a/ircd/m_endburst.c b/ircd/m_endburst.c index d13be04..46d51ae 100644 --- a/ircd/m_endburst.c +++ b/ircd/m_endburst.c @@ -85,6 +85,7 @@ #include "client.h" #include "hash.h" #include "ircd.h" +#include "ircd_log.h" #include "ircd_reply.h" #include "ircd_string.h" #include "msg.h" @@ -92,7 +93,7 @@ #include "numnicks.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /* * ms_end_of_burst - server message handler @@ -125,16 +126,12 @@ int ms_end_of_burst(struct Client* cptr, struct Client* sptr, int parc, char* pa /* Count through channels... */ for (chan = GlobalChannelList; chan; chan = next_chan) { next_chan = chan->next; - - if (!chan->members) { /* empty channel */ - if (!(chan->mode.mode & MODE_BURSTADDED)) - sendto_opmask_butone(0, SNO_OLDSNO, "Empty channel %H not added by " - "BURST!", chan); - - sub1_from_channel(chan); /* ok, nuke channel now */ - } - - chan->mode.mode &= ~MODE_BURSTADDED; + if (!chan->members && (chan->mode.mode & MODE_BURSTADDED)) { + /* Newly empty channel, schedule it for removal. */ + chan->mode.mode &= ~MODE_BURSTADDED; + sub1_from_channel(chan); + } else + chan->mode.mode &= ~MODE_BURSTADDED; } return 0;