/[svn]/ircd-hybrid/trunk/modules/m_gline.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/m_gline.c

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

revision 1643 by michael, Sun Nov 4 15:37:10 2012 UTC revision 1644 by michael, Tue Nov 6 22:20:16 2012 UTC
# Line 94  remove_gline_match(const char *user, con Line 94  remove_gline_match(const char *user, con
94  {  {
95    struct irc_ssaddr iphost, *piphost;    struct irc_ssaddr iphost, *piphost;
96    struct MaskItem *conf;    struct MaskItem *conf;
97    int t;    int t = 0;
98      int aftype = 0;
99    
100    if ((t = parse_netmask(host, &iphost, NULL)) != HM_HOST)    if ((t = parse_netmask(host, &iphost, NULL)) != HM_HOST)
101    {    {
102  #ifdef IPV6  #ifdef IPV6
103      if (t == HM_IPV6)      if (t == HM_IPV6)
104        t = AF_INET6;        aftype = AF_INET6;
105      else      else
106  #endif  #endif
107        t = AF_INET;        aftype = AF_INET;
108      piphost = &iphost;      piphost = &iphost;
109    }    }
110    else    else
   {  
     t = 0;  
111      piphost = NULL;      piphost = NULL;
   }  
112    
113    if ((conf = find_conf_by_address(host, piphost, CONF_GLINE, t, user, NULL, 0)))    if ((conf = find_conf_by_address(host, piphost, CONF_GLINE, aftype, user, NULL, 0)))
114    {    {
115      if (IsConfDatabase(conf))      if (IsConfDatabase(conf))
116      {      {

Legend:
Removed from v.1643  
changed lines
  Added in v.1644

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