aboutsummaryrefslogtreecommitdiff
path: root/lib/MasterServer/UDP
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MasterServer/UDP')
-rwxr-xr-xlib/MasterServer/UDP/DatagramProcessor.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MasterServer/UDP/DatagramProcessor.pm b/lib/MasterServer/UDP/DatagramProcessor.pm
index 87c23a1..99ced03 100755
--- a/lib/MasterServer/UDP/DatagramProcessor.pm
+++ b/lib/MasterServer/UDP/DatagramProcessor.pm
@@ -14,7 +14,7 @@ sub process_datagram {
my $rx = $self->data2hashref($o{rxbuf});
# can not proceed if validate was provided, but not gamename
- return 0 if ( $rx->{validate} && not($rx->{gamename}) );
+ return 0 unless $rx->{gamename};
# do not process data if no hostport was provided.
return 0 unless $rx->{hostport};