/[svn]/ircd-hybrid/branches/8.2.x/src/conf.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/conf.c

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

revision 9690 by michael, Tue Sep 29 12:51:21 2020 UTC revision 9691 by michael, Sat Oct 31 19:04:39 2020 UTC
# Line 575  conf_set_defaults(void) Line 575  conf_set_defaults(void)
575    assert(class_default == class_get_list()->tail->data);    assert(class_default == class_get_list()->tail->data);
576    
577    ConfigServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);    ConfigServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);
578    ConfigServerInfo.network_desc = xstrdup(NETWORK_DESC_DEFAULT);    ConfigServerInfo.network_description = xstrdup(NETWORK_DESCRIPTION_DEFAULT);
579    ConfigServerInfo.default_max_clients = MAXCLIENTS_MAX;    ConfigServerInfo.default_max_clients = MAXCLIENTS_MAX;
580    ConfigServerInfo.max_nick_length = 9;    ConfigServerInfo.max_nick_length = 9;
581    ConfigServerInfo.max_topic_length = 80;    ConfigServerInfo.max_topic_length = 80;
# Line 665  conf_validate(void) Line 665  conf_validate(void)
665    if (EmptyString(ConfigServerInfo.network_name))    if (EmptyString(ConfigServerInfo.network_name))
666      ConfigServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);      ConfigServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);
667    
668    if (EmptyString(ConfigServerInfo.network_desc))    if (EmptyString(ConfigServerInfo.network_description))
669      ConfigServerInfo.network_desc = xstrdup(NETWORK_DESC_DEFAULT);      ConfigServerInfo.network_description = xstrdup(NETWORK_DESCRIPTION_DEFAULT);
670  }  }
671    
672  /* conf_read()  /* conf_read()
# Line 875  conf_clear(void) Line 875  conf_clear(void)
875    ConfigServerInfo.description = NULL;    ConfigServerInfo.description = NULL;
876    xfree(ConfigServerInfo.network_name);    xfree(ConfigServerInfo.network_name);
877    ConfigServerInfo.network_name = NULL;    ConfigServerInfo.network_name = NULL;
878    xfree(ConfigServerInfo.network_desc);    xfree(ConfigServerInfo.network_description);
879    ConfigServerInfo.network_desc = NULL;    ConfigServerInfo.network_description = NULL;
880    xfree(ConfigServerInfo.rsa_private_key_file);    xfree(ConfigServerInfo.rsa_private_key_file);
881    ConfigServerInfo.rsa_private_key_file = NULL;    ConfigServerInfo.rsa_private_key_file = NULL;
882    xfree(ConfigServerInfo.tls_certificate_file);    xfree(ConfigServerInfo.tls_certificate_file);

Legend:
Removed from v.9690  
changed lines
  Added in v.9691

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