On Mon, Dec 30, 2002 at 03:06:30PM -0500, Kev wrote:
> > Here's the patch I mentioned yesterday.. basically if there's a "netriding"
> > case (channel with older timestamp and +i/k set received in BURST) then it
> > deletes all invites for the channel as well as kicking all local users.
> 
> No sense reinventing the wheel.  Take a look at mode_invite_clean() in
> channel.c--I'd rather you use it.

OK, I attach a patch which does just that.

Note that the code I used was copied from sub1_from_channel() (or similar),
so I wasn't really reinventing the wheel =)

Cheers,

splidge
QuakeNet peon 
--- ChangeLog~  2002-12-30 02:31:00.000000000 +0000
+++ ChangeLog   2002-12-31 01:38:05.000000000 +0000
@@ -1,3 +1,7 @@
+2002-12-31  David Mansell <[EMAIL PROTECTED]>
+       * ircd/m_burst.c (ms_burst): when kicking net riders, clear invites
+       too.
+
 2002-12-30  Perry Lorier <[EMAIL PROTECTED]>
        * ircd/m_gline.c: Server set glines are FORCE'd.
        
--- ircd/m_burst.c~     2002-12-31 01:31:37.000000000 +0000
+++ ircd/m_burst.c      2002-12-31 01:32:51.000000000 +0000
@@ -175,6 +175,8 @@
           sendcmdto_channel_butserv_butone(&me, CMD_KICK, chptr, NULL, "%H %C :Net 
Rider", chptr, member->user);
           make_zombie(member, member->user, &me, &me, chptr);
         }
+        /* Clear any outstanding rogue invites */
+        mode_invite_clear(chptr);
       }
       break;
     }

Reply via email to