diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-03-18 22:50:01 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2026-03-18 22:50:01 +0100 |
| commit | 4715e7ccde04a77ff04f1ac839c151eaebc4ad44 (patch) | |
| tree | 19acf817906379f4a99e325a2ca40ed431814ea0 | |
| parent | 0fb9f2bb4f1b34ba55cdc06a83dc06a4a5754f97 (diff) | |
dont skip empty descriptions
| -rw-r--r-- | webAO/master.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webAO/master.ts b/webAO/master.ts index ddef040..b40763d 100644 --- a/webAO/master.ts +++ b/webAO/master.ts @@ -74,8 +74,7 @@ async function getServerlist(): Promise<AOServer[]> { continue; } if (!item.description) { - console.warn(`Server ${item.name} has no description, skipping`); - continue; + console.warn(`Server ${item.name} has no description`); } const newServer: AOServer = { @@ -94,9 +93,8 @@ async function getServerlist(): Promise<AOServer[]> { } // if none of ws_port or wss_port are defined, skip - // Note that this is not an error condition, as many servers only has port (TCP) enabled - // Which means they don't support webAO if (!newServer.ws_port && !newServer.wss_port) { + console.warn(`Server ${item.name} has no websocket port, skipping`); continue; } |
