Skip to content
Extraits de code Groupes Projets
Valider 6852e240 rédigé par ElTata's avatar ElTata :ok_hand:
Parcourir les fichiers

fix: empty keys in $rps are deleted

parent 8ead19b9
Branches devel
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -262,6 +262,15 @@ sub rpcheck { # check levels, update database ...@@ -262,6 +262,15 @@ sub rpcheck { # check levels, update database
# there's really nothing to do here if there are no online users # there's really nothing to do here if there are no online users
return unless $online; return unless $online;
# Sometimes an empty key is added in $rps
# while the origin of this problem is not found,
# here is a workaround
if (grep { $_ eq '' } keys %$rps) {
debug("Error: empty key in \%\$rps. Deleting.");
#print(Irpg::Utils::ts()."Error: empty key in \%\$rps. Deleting.");
delete $rps->{''};
}
### MOVING PLAYERS ### ### MOVING PLAYERS ###
moveplayers(); moveplayers();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter