[UCS] Consolidate configuration block (#3768)

* [UCS] Consolidate configuration block

* Update eqemu_config.cpp

* Single indent config

* reload config internally

* Make sure port is a string to be consistent with previous fields

* Move conversion logic to function CheckUcsConfigConversion
This commit is contained in:
Chris Miles
2024-01-06 21:55:51 -06:00
committed by GitHub
parent c4da9766a4
commit a3a707adae
7 changed files with 133 additions and 51 deletions
+1 -7
View File
@@ -164,13 +164,7 @@ int main() {
database.ExpireMail();
if(Config->ChatPort != Config->MailPort)
{
LogInfo("MailPort and CharPort must be the same in eqemu_config.json for UCS");
exit(1);
}
g_Clientlist = new Clientlist(Config->ChatPort);
g_Clientlist = new Clientlist(Config->GetUCSPort());
ChannelList = new ChatChannelList();