From 5e28fb8f97f7f57be4f62676fd96bd7b97103419 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 16 Dec 2004 13:59:23 +0000 Subject: (svn r1131) -Add: [Network] Autoclean_companies (set it with 'set autoclean_companies on/off'). When enabled, empty companies (companies with no active clients) with no password are declared bankrupt after 1 year of emptyness. For empty companies with password, the password is removed after 3 years of emptyness. The delay of removing company/password can be configured via: - 'set autoclean_protected ' - 'set autoclean_unprotected ' --- settings.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings.c') diff --git a/settings.c b/settings.c index 987a5b140..2b6ffe644 100644 --- a/settings.c +++ b/settings.c @@ -733,6 +733,9 @@ static const SettingDesc network_settings[] = { {"server_name", SDT_STRINGBUF | (lengthof(_network_server_name) << 16), NULL, &_network_server_name, NULL}, {"connect_to_ip", SDT_STRINGBUF | (lengthof(_network_default_ip) << 16), NULL, &_network_default_ip, NULL}, {"network_id", SDT_STRINGBUF | (lengthof(_network_unique_id) << 16), NULL, &_network_unique_id, NULL}, + {"autoclean_companies", SDT_BOOL, (void*)false, &_network_autoclean_companies, NULL}, + {"autoclean_unprotected", SDT_UINT8, (void*)12, &_network_autoclean_unprotected, NULL}, + {"autoclean_protected", SDT_UINT8, (void*)36, &_network_autoclean_protected, NULL}, {NULL, 0, NULL, NULL, NULL} }; #endif /* ENABLE_NETWORK */ -- cgit v1.2.3-54-g00ecf