X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fm_burst.c;h=00e426545003b62c48a8c8738b8862e9a3c9d2f6;hp=f1e4429e32d0d0d9d273478240374f7abb6006f5;hb=2fbe1c3ccc35099d105552c0eef8eb566c97662d;hpb=8c06027f433c39f9d51864f6eb8aa4533cd9b4e6 diff --git a/ircd/m_burst.c b/ircd/m_burst.c index f1e4429..00e4265 100644 --- a/ircd/m_burst.c +++ b/ircd/m_burst.c @@ -336,25 +336,8 @@ int ms_burst(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) modebuf_mode(mbuf, MODE_DEL | chptr->mode.mode); /* wipeout modes */ chptr->mode.mode &= MODE_BURSTADDED | MODE_WASDELJOINS; - /* wipe out modes not represented in chptr->mode.mode */ - if (chptr->mode.limit) { - modebuf_mode_uint(mbuf, MODE_DEL | MODE_LIMIT, chptr->mode.limit); - chptr->mode.limit = 0; - } - if (chptr->mode.key[0]) { - modebuf_mode_string(mbuf, MODE_DEL | MODE_KEY, chptr->mode.key, 0); - chptr->mode.key[0] = '\0'; - } - if (chptr->mode.upass[0]) { - modebuf_mode_string(mbuf, MODE_DEL | MODE_UPASS, chptr->mode.upass, 0); - chptr->mode.upass[0] = '\0'; - } - if (chptr->mode.apass[0]) { - modebuf_mode_string(mbuf, MODE_DEL | MODE_APASS, chptr->mode.apass, 0); - chptr->mode.apass[0] = '\0'; - } - - parse_flags |= (MODE_PARSE_SET | MODE_PARSE_WIPEOUT); /* wipeout keys */ + /* wipeout any limit and keys that are set */ + parse_flags |= (MODE_PARSE_SET | MODE_PARSE_WIPEOUT); /* mark bans for wipeout */ for (lp = chptr->banlist; lp; lp = lp->next)