ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/modules/core/m_nick.c
(Generate patch)

Comparing ircd-hybrid-8/modules/core/m_nick.c (file contents):
Revision 1181 by michael, Mon Aug 15 08:11:31 2011 UTC vs.
Revision 1182 by michael, Tue Aug 16 08:18:13 2011 UTC

# Line 607 | Line 607 | nick_from_server(struct Client *client_p
607        {
608          unsigned int flag = user_modes[(unsigned char)*m];
609  
610 <        if (flag & UMODE_INVISIBLE)
610 >        if ((flag & UMODE_INVISIBLE) && !HasUMode(source_p, UMODE_INVISIBLE))
611            ++Count.invisi;
612 <        if (flag & UMODE_OPER)
612 >        if ((flag & UMODE_OPER) && !HasUMode(source_p, UMODE_OPER))
613            ++Count.oper;
614  
615          source_p->umodes |= flag & SEND_UMODES;
# Line 686 | Line 686 | uid_from_server(struct Client *client_p,
686    {
687      unsigned int flag = user_modes[(unsigned char)*m];
688  
689 <    if (flag & UMODE_INVISIBLE)
689 >    if ((flag & UMODE_INVISIBLE) && !HasUMode(source_p, UMODE_INVISIBLE))
690        ++Count.invisi;
691 <    if (flag & UMODE_OPER)
691 >    if ((flag & UMODE_OPER) && !HasUMode(source_p, UMODE_OPER))
692        ++Count.oper;
693  
694      source_p->umodes |= flag & SEND_UMODES;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines