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

bugfix in STATUS command

asking for the command while not being logged in
used to throw a warning, not anymore
parent 223e1f9e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -97,7 +97,7 @@ sub register {
$rps->{$arg[0]}{stats}{$_} = 1;
}
$rps->{$arg[0]}{class} = Irpg::Classes::Farmer->new($rps->{$arg[0]}{stats});
$rps->{$arg[0]}{points} = 1;
$rps->{$arg[0]}{points} = 0;
$rps->{$arg[0]}{actions} = 0;
$rps->{$arg[0]}{next_f} = 0;
$rps->{$arg[0]}{online} = 1;
......@@ -210,7 +210,10 @@ sub logout {
sub status {
return unless ($opts->{statuscmd});
my ($userhost, $usernick, $username, $source, @arg) = @_;
my $asked = exists($arg[0]) ? $arg[0] : $username;
my $asked = exists($arg[0]) ?
$arg[0] :
(defined($username) ?
$username : $usernick);
$asked = Irpg::Main::finduser($asked) unless (exists($rps->{$asked}));
$asked = Irpg::Main::finduser($asked, 1) unless ($asked);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter