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

Comparing ircd-hybrid-7.2/src/s_conf.c (file contents):
Revision 1001 by michael, Sat Aug 29 22:44:44 2009 UTC vs.
Revision 1005 by michael, Mon Aug 31 23:07:43 2009 UTC

# Line 169 | Line 169 | unmap_conf_item(void *aconf)
169   static void
170   conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name)
171   {
172 <  struct AccessItem *aconf = (struct AccessItem *)vptr;
173 <  struct ConfItem *conf;
172 >  struct AccessItem *aconf = vptr;
173  
174    aconf->dns_pending = 0;
175  
# Line 3066 | Line 3065 | conf_add_server(struct ConfItem *conf, c
3065    return 0;
3066   }
3067  
3069 /* conf_add_d_conf()
3070 *
3071 * inputs       - pointer to config item
3072 * output       - NONE
3073 * side effects - Add a d/D line
3074 */
3075 void
3076 conf_add_d_conf(struct AccessItem *aconf)
3077 {
3078  if (aconf->host == NULL)
3079    return;
3080
3081  aconf->user = NULL;
3082
3083  /* XXX - Should 'd' ever be in the old conf? For new conf we don't
3084   *       need this anyway, so I will disable it for now... -A1kmm
3085   */
3086  if (parse_netmask(aconf->host, NULL, NULL) == HM_HOST)
3087  {
3088    ilog(L_WARN, "Invalid Dline %s ignored", aconf->host);
3089    free_access_item(aconf);
3090  }
3091  else
3092  {
3093    /* XXX ensure user is NULL */
3094    MyFree(aconf->user);
3095    aconf->user = NULL;
3096    add_conf_by_address(CONF_DLINE, aconf);
3097  }
3098 }
3099
3068   /* yyerror()
3069   *
3070   * inputs       - message from parser

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines