diff options
| author | Darkelarious <darkelarious@333networks.com> | 2017-09-27 16:45:16 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2017-09-27 17:31:23 +0200 |
| commit | 30da109c053fa54b3a2f80dfb6777e3ad7da1b4c (patch) | |
| tree | 767974a184deeaf572ee48fb717986325308424e /lib/MasterWebInterface/Database/Pg/Servers.pm | |
| parent | 18921404e5454cdf202b7b4f70a2777f3e297998 (diff) | |
| download | WebInterface-Perl-MS-Perl-30da109c053fa54b3a2f80dfb6777e3ad7da1b4c.tar.gz WebInterface-Perl-MS-Perl-30da109c053fa54b3a2f80dfb6777e3ad7da1b4c.zip | |
filter blacklisted servers + color tags
Diffstat (limited to 'lib/MasterWebInterface/Database/Pg/Servers.pm')
| -rwxr-xr-x | lib/MasterWebInterface/Database/Pg/Servers.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MasterWebInterface/Database/Pg/Servers.pm b/lib/MasterWebInterface/Database/Pg/Servers.pm index 0ed47b1..28b9b7a 100755 --- a/lib/MasterWebInterface/Database/Pg/Servers.pm +++ b/lib/MasterWebInterface/Database/Pg/Servers.pm @@ -45,6 +45,8 @@ sub dbServerListGet { ? ('hostname ILIKE ?' => "%$o{search}%") : (), $o{updated} ? ('serverlist.updated > to_timestamp(?)' => (time-$o{updated}) ) : (), + $o{filter} + ? ('blacklisted = CAST(? AS BOOLEAN)' => 0) : (), ('length(hostname) > ?' => 1), # don't allow empty hostnames ('hostport > ?' => 0), # or games with empty hostport ); |
