diff options
| author | Darkelarious <darkelarious@333networks.com> | 2017-07-06 12:21:45 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2017-07-06 12:21:45 +0200 |
| commit | e0d727670cbeda0db0812c5c9efc503d75f8d0a4 (patch) | |
| tree | 3c4a5c2aa2b065e5458ea30e86c30ed30f7bac8d /lib/MasterServer/UDP/BeaconCatcher.pm | |
| parent | 34a2c7390ea9662d33258d384e72fff1912343ff (diff) | |
| download | MasterServer-Perl-e0d727670cbeda0db0812c5c9efc503d75f8d0a4.tar.gz MasterServer-Perl-e0d727670cbeda0db0812c5c9efc503d75f8d0a4.zip | |
Support for \status\ query, deprecated \about\ query
Diffstat (limited to 'lib/MasterServer/UDP/BeaconCatcher.pm')
| -rwxr-xr-x | lib/MasterServer/UDP/BeaconCatcher.pm | 9 |
1 files changed, 7 insertions, 2 deletions
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; |
