From 083b5da759206a44d73eb8e90a9370ef40627500 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Tue, 17 Jul 2001 14:15:23 +0000 Subject: [PATCH] Author: Kev Log message: Remove spurious protocol violation notices by backing off on the required parameter count for BURST. These can be sent if all users on a channel with no modes set get collided off during the burst. If the channel remains empty after the BURST is complete, it will be garbage-collected as before during the processing of END_OF_BURST. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@531 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 6 ++++++ ircd/m_burst.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a94cfd..b458087 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-07-17 Kevin L. Mitchell + + * ircd/m_burst.c (ms_burst): in the case of a modeless channel and + a nick collide, a bare BURST may be propagated; adjust the + enforced parameter count to accept the bare BURST + 2001-07-12 Kevin L. Mitchell * ircd/s_bsd.c: mark a client as having been IP checked diff --git a/ircd/m_burst.c b/ircd/m_burst.c index 498b64d..ecde2f4 100644 --- a/ircd/m_burst.c +++ b/ircd/m_burst.c @@ -145,7 +145,7 @@ int ms_burst(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) int param, nickpos = 0, banpos = 0; char modestr[BUFSIZE], nickstr[BUFSIZE], banstr[BUFSIZE]; - if (parc < 4) + if (parc < 3) return protocol_violation(sptr,"Too few parameters for BURST"); if (!IsBurst(sptr)) /* don't allow BURST outside of burst */ -- 2.20.1