mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 19:28:28 +00:00
Perl string inequality is "ne"
This commit is contained in:
parent
eb1cdbb72b
commit
ea03c35faf
@ -622,7 +622,7 @@ function numPlayersConnected(){
|
||||
my $idx = ord(substr($pdata, 0, 1));
|
||||
my ($name, $rest) = split(/\x00/, substr($pdata, 1), 2);
|
||||
$pdata = substr($rest, 8);
|
||||
if ($name != "") {
|
||||
if ($name ne "") {
|
||||
$active = $active + 1;
|
||||
}
|
||||
}
|
||||
@ -2130,7 +2130,7 @@ printStatus(){
|
||||
my $idx = ord(substr($pdata, 0, 1));
|
||||
my ($name, $rest) = split(/\x00/, substr($pdata, 1), 2);
|
||||
$pdata = substr($rest, 8);
|
||||
if ($name != "") {
|
||||
if ($name ne "") {
|
||||
$active = $active + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user