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

Diff of /ircd-hybrid/trunk/src/s_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 45  static void expire_pending_glines(struct Line 45  static void expire_pending_glines(struct
45  struct MaskItem *  struct MaskItem *
46  find_is_glined(const char *host, const char *user)  find_is_glined(const char *host, const char *user)
47  {  {
48    struct irc_ssaddr iphost, *piphost;    struct irc_ssaddr iphost, *piphost = NULL;
49    struct MaskItem *conf = NULL;    struct MaskItem *conf = NULL;
50    int t;    int t = 0;
51      int aftype = 0;
52    
53    if ((t = parse_netmask(host, &iphost, &t)) != HM_HOST)    if ((t = parse_netmask(host, &iphost, NULL)) != HM_HOST)
54    {    {
55  #ifdef IPV6  #ifdef IPV6
56      if (t == HM_IPV6)      if (t == HM_IPV6)
57        t = AF_INET6;        aftype = AF_INET6;
58      else      else
59  #endif  #endif
60        t = AF_INET;        aftype = AF_INET;
61      piphost = &iphost;      piphost = &iphost;
62    }    }
63    else    else
   {  
     t = 0;  
64      piphost = NULL;      piphost = NULL;
   }  
65    
66    conf = find_conf_by_address(host, piphost, CONF_GLINE, t, user, NULL, 0);    conf = find_conf_by_address(host, piphost, CONF_GLINE, aftype, user, NULL, 0);
67    return conf;    return conf;
68  }  }
69    

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

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