aboutsummaryrefslogtreecommitdiff
path: root/lib/MasterWebInterface/Database/Pg/Servers.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MasterWebInterface/Database/Pg/Servers.pm')
-rwxr-xr-xlib/MasterWebInterface/Database/Pg/Servers.pm2
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
);