From dc409b9cb6e92fd9ff9ef18ab2ca825bd247b419 Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Sun, 8 Nov 2015 22:29:50 +0100 Subject: Access ciphers and games through database instead of keeping them in memory --- lib/MasterServer/TCP/ListCompiler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/MasterServer/TCP/ListCompiler.pm') diff --git a/lib/MasterServer/TCP/ListCompiler.pm b/lib/MasterServer/TCP/ListCompiler.pm index 56bb256..1863757 100755 --- a/lib/MasterServer/TCP/ListCompiler.pm +++ b/lib/MasterServer/TCP/ListCompiler.pm @@ -93,7 +93,7 @@ sub compile_sync { for my $g (@games) { # $g is now a gamename -- check if it's supported. Else ignore. - if (exists $self->{game}->{$g}) { + if (length $self->get_cipher(lc $g) > 1) { # get list from database my $list = $self->get_game_list($g); -- cgit v1.2.3