From e0d727670cbeda0db0812c5c9efc503d75f8d0a4 Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Thu, 6 Jul 2017 12:21:45 +0200 Subject: Support for \status\ query, deprecated \about\ query --- lib/MasterServer/UDP/BeaconCatcher.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/MasterServer/UDP/BeaconCatcher.pm') diff --git a/lib/MasterServer/UDP/BeaconCatcher.pm b/lib/MasterServer/UDP/BeaconCatcher.pm index 5c4ff5f..7c98f57 100755 --- a/lib/MasterServer/UDP/BeaconCatcher.pm +++ b/lib/MasterServer/UDP/BeaconCatcher.pm @@ -65,8 +65,13 @@ sub on_beacon_receive { if ($b =~ m/\\heartbeat\\/ && $b =~ m/\\gamename\\/); # if other masterservers check if we're still alive - $self->process_udp_secure($udp, $pa, $b, $peer_addr) - if ($b =~ m/\\secure\\/ || $b =~ m/\\basic\\/ || $b =~ m/\\status\\/ || $b =~ m/\\info\\/); + $self->handle_status_query($udp, $pa, $b, $peer_addr) + if ($b =~ m/\\secure\\/ || + $b =~ m/\\basic\\/ || + $b =~ m/\\info\\/ || + $b =~ m/\\rules\\/ || + $b =~ m/\\players\\/|| + $b =~ m/\\status\\/); } 1; -- cgit v1.2.3