From 30adff959ed724224d4a9e1d37b08705f5d62f53 Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Tue, 19 Apr 2022 15:00:35 +0200 Subject: bypass hostport sanity check for bcommander --- Changelog | 3 +++ lib/MasterWebInterface/Database/Servers.pm | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 8cc7b54..cd8e1ee 100755 --- a/Changelog +++ b/Changelog @@ -1,5 +1,8 @@ Changelog: +19-04-2022: list Star Trek Bridge Commander games + * minor sanity check bypassed because bcommander has hostport 0 by default + 17-10-2021: additional Json API support * database queries for gametype and specific request * json api accepts additional options for requests diff --git a/lib/MasterWebInterface/Database/Servers.pm b/lib/MasterWebInterface/Database/Servers.pm index f9ad636..6c51494 100755 --- a/lib/MasterWebInterface/Database/Servers.pm +++ b/lib/MasterWebInterface/Database/Servers.pm @@ -24,7 +24,9 @@ sub dbServerListGet { $o{gametype} ? ('LOWER(gametype) LIKE LOWER(?)' => lc $o{gametype}) : (), $o{popserv} ? ('numplayers > ?' => 0) : (), $o{utdemo} ? ('gamever = ?' => '348') : (), - ('hostport > ?' => 0), # sanity check (unresponsive servers or faulty queries tools) + + # sanity check for unresponsive servers or faulty queries tools, except ST:Bcommander which /is/ faulty by default + $o{gamename} !~ /bcommander/ ? ('hostport > ?' => 0) : (), ); my @select = ( qw| id ip hostport hostname serverlist.gamename country numplayers maxplayers maptitle mapname gametype dt_added label dt_updated| ); -- cgit v1.2.3