mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
Fix crashes when there are no alias blocks in the conf.
This commit is contained in:
parent
fa1a7bef02
commit
456e5b3d64
2 changed files with 3 additions and 3 deletions
|
@ -1722,9 +1722,6 @@ conf_end_alias(struct TopConf *tc)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!alias_dict)
|
|
||||||
alias_dict = irc_dictionary_create(strcasecmp);
|
|
||||||
|
|
||||||
irc_dictionary_add(alias_dict, yy_alias->name, yy_alias);
|
irc_dictionary_add(alias_dict, yy_alias->name, yy_alias);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -834,6 +834,9 @@ set_default_conf(void)
|
||||||
ConfigFileEntry.throttle_duration = 60;
|
ConfigFileEntry.throttle_duration = 60;
|
||||||
|
|
||||||
ServerInfo.default_max_clients = MAXCONNECTIONS;
|
ServerInfo.default_max_clients = MAXCONNECTIONS;
|
||||||
|
|
||||||
|
if (!alias_dict)
|
||||||
|
alias_dict = irc_dictionary_create(strcasecmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef YES
|
#undef YES
|
||||||
|
|
Loading…
Reference in a new issue