--- channel.c.orig Fri Jun 27 17:56:00 2003 +++ channel.c Fri Jul 4 00:09:54 2003 @@ -2915,10 +2915,28 @@ "Gone"); } - if (MyConnect(acptr)) - if (chptr && /* (chptr->mode.mode & MODE_INVITEONLY) && */ - sptr->user && is_chan_op(sptr, chptr)) + if( MyConnect(acptr) ){ + if(chptr + && sptr->user + && is_chan_op(sptr, chptr) + ){ + Link*banned; add_invite(acptr, chptr); + banned =(match_modeid(CHFL_EXCEPTION, acptr, chptr)?0:match_modeid(CHFL_BAN, acptr, chptr)); + + if(banned ) sendto_channel_butone(&me, &me, chptr + ,":%s NOTICE %s :%s invite %s,overriding ban mask %s." + ,ME + ,chptr->chname + ,sptr->name + ,acptr->name + ,banned->value.cp + ); + } + } + + + sendto_prefix_one(acptr, sptr, ":%s INVITE %s :%s",parv[0], acptr->name, ((chptr) ? (chptr->chname) : parv[2]));