Follow-up Comment #1, bug #13931 (project freeciv):
add patch based on the settings changes
(gna13867 to gna13871)
again the question if the use of 'char sval[1024]'
in setting_set_to_default() is correct.
if the recursive read patch is added, the check
path can include read_ini_script():
static bool reset_command(struct connection *caller, bool check)
{
if (srvarg.script_filename &&
!read_init_script(NULL, srvarg.script_filename, TRUE, check)) {
freelog(LOG_ERROR, _("Cannot load the script file '%s'"),
srvarg.script_filename);
return FALSE;
}
if (!check) {
settings_reset();
send_server_settings(NULL);
notify_conn(NULL, NULL, E_SETTING, _("Server: Settings
re-initialized."));
}
return TRUE;
}
(file #6192)
_______________________________________________________
Additional Item Attachment:
File name: gna13931-implement-reset-command-with-settings.patch Size:7 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13931>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev