Only serialize created servers

Any changes to servers that aren't created online need to be manually
added to the configuration file in order for them to take effect after the
restart.
This commit is contained in:
Markus Mäkelä
2016-12-19 18:13:36 +02:00
parent aae84144ea
commit 180728dde6
3 changed files with 9 additions and 1 deletions

View File

@ -136,6 +136,7 @@ SERVER* server_alloc(const char *name, const char *address, unsigned short port,
server->monuser[0] = '\0';
server->monpw[0] = '\0';
server->is_active = true;
server->created_online = false;
server->charset = SERVER_DEFAULT_CHARSET;
spinlock_acquire(&server_spin);