/[svn]/ircd-hybrid/trunk/src/channel.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/channel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1651 by michael, Sun Nov 4 15:37:10 2012 UTC revision 1652 by michael, Tue Nov 13 20:28:53 2012 UTC
# Line 595  find_bmask(const struct Client *who, con Line 595  find_bmask(const struct Client *who, con
595    {    {
596      const struct Ban *bp = ptr->data;      const struct Ban *bp = ptr->data;
597    
598      if (match(bp->name, who->name) && match(bp->username, who->username))      if (!match(bp->name, who->name) && !match(bp->username, who->username))
599      {      {
600        switch (bp->type)        switch (bp->type)
601        {        {
602          case HM_HOST:          case HM_HOST:
603            if (match(bp->host, who->host) || match(bp->host, who->sockhost))            if (!match(bp->host, who->host) || !match(bp->host, who->sockhost))
604              return 1;              return 1;
605            break;            break;
606          case HM_IPV4:          case HM_IPV4:

Legend:
Removed from v.1651  
changed lines
  Added in v.1652

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28