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

improvement : $rps is now available from PEVAL cmd

Brings $rps var in eval context for PEVAL cmd.
(Should already be, I do not really understand why it is not
the case.)
parent b7d22139
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,6 +36,11 @@ sub peval { ...@@ -36,6 +36,11 @@ sub peval {
Irpg::Irc::privmsg("You don't have access to PEVAL.", $usernick); Irpg::Irc::privmsg("You don't have access to PEVAL.", $usernick);
} }
else { else {
my (undef) = $rps; #does nothing;
#this is a cheat to have $rps variable
#available in eval context
#FIXME
#I don't understand why $rps is not already available
my @peval = eval "@arg"; my @peval = eval "@arg";
if (@peval >= 4 || length("@peval") > 1024) { if (@peval >= 4 || length("@peval") > 1024) {
Irpg::Irc::privmsg("Command produced too much output to send ". Irpg::Irc::privmsg("Command produced too much output to send ".
......
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