[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moderating nick changes : a test patch.



On Wed, Sep 08, 1999 at 09:43:17AM +0200, Piotr Kucharski wrote:
> On Wed, Sep 08, 1999 at 08:44:23AM +0200, Matus fantomas Uhlar wrote:
> > hmmm does it check for +e ? 
> 
> no.

It does!


> 
> > if user has +e, the penalty chouldn't be
> > increased...
> 
> maybe. maybe we should use can_send() here

?

/* is the user banned on any channel ? */
for (lp = sptr->user->channel; lp; lp = lp->next)
        if (can_send(sptr, lp->value.chptr) ==MODE_BAN)
                break;


int     can_send(cptr, chptr)
...
        if ((!lp || !(lp->flags & (CHFL_CHANOP | CHFL_VOICE))) &&
            !match_modeid(CHFL_EXCEPTION, cptr, chptr) &&
            match_modeid(CHFL_BAN, cptr, chptr))
                return (MODE_BAN);


-- 
+----------------------------------------------------------------------------+
|    Michael 'Eumel' Neumayer     <Michael.Neumayer@xxxxxxxxxxxxxxxxxxxx>    |
|    Eumel@IRC             ! LinuX inside !             pgp-key available    |
+----------------------------------------------------------------------------+