(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 <months>'
 - 'set autoclean_unprotected <months>'
This commit is contained in:
truelight
2004-12-16 13:59:23 +00:00
parent 89fd12692f
commit 5e28fb8f97
7 changed files with 148 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest,
bool NetworkServer_ReadPackets(ClientState *cs);
void NetworkServer_Tick();
void NetworkServerMonthlyLoop();
#endif /* ENABLE_NETWORK */