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

Comparing ircd-hybrid-8/src/conf.c (file contents):
Revision 1364 by michael, Sun Apr 22 19:28:21 2012 UTC vs.
Revision 1366 by michael, Tue Apr 24 18:35:34 2012 UTC

# Line 3053 | Line 3053 | conf_add_class_to_conf(struct ConfItem *
3053   int
3054   conf_add_server(struct ConfItem *conf, const char *class_name)
3055   {
3056 <  struct AccessItem *aconf;
3057 <  struct split_nuh_item nuh;
3058 <  char conf_user[USERLEN + 1];
3059 <  char conf_host[HOSTLEN + 1];
3060 <
3061 <  aconf = map_to_conf(conf);
3056 >  struct AccessItem *aconf = map_to_conf(conf);
3057  
3058    conf_add_class_to_conf(conf, class_name);
3059  
# Line 3077 | Line 3072 | conf_add_server(struct ConfItem *conf, c
3072      return -1;
3073    }
3074  
3080  nuh.nuhmask  = aconf->host;
3081  nuh.nickptr  = NULL;
3082  nuh.userptr  = conf_user;
3083  nuh.hostptr  = conf_host;
3084
3085  nuh.nicksize = 0;
3086  nuh.usersize = sizeof(conf_user);
3087  nuh.hostsize = sizeof(conf_host);
3088
3089  split_nuh(&nuh);
3090
3091  MyFree(aconf->host);
3092  aconf->host = NULL;
3093
3094  DupString(aconf->user, conf_user); /* somehow username checking for servers
3095                                 got lost in H6/7, will have to be re-added */
3096  DupString(aconf->host, conf_host);
3097
3075    lookup_confhost(conf);
3076  
3077    return 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)