X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.d%2Fmenu.pl;fp=purple%2Fanswerscripts.d%2Fmenu.pl;h=d7afa4e14020d4d71d199095f45b09b3acc985ae;hp=5c0c5932f12d17086f6f3e3c9b11113a94778fd8;hb=c5863c50a6615b2365509ed81eb5979abb8967e7;hpb=0636d441a2b6874f4e9419a0676a25343ad98dc8 diff --git a/purple/answerscripts.d/menu.pl b/purple/answerscripts.d/menu.pl index 5c0c593..d7afa4e 100755 --- a/purple/answerscripts.d/menu.pl +++ b/purple/answerscripts.d/menu.pl @@ -4,10 +4,10 @@ use strict; use warnings; use Switch; -switch ($ENV{PURPLE_MSG}) { +switch ($ENV{ANSW_MSG}) { case /^!help$/ { print "What did you expected? A help?! :-P"; } case /^!ping$/ { print "PONG"; } - case /^!whoami$/ { print "You are: $ENV{PURPLE_FROM}"; } + case /^!whoami$/ { print "You are: $ENV{ANSW_FROM}"; } case /^!(reboot|reset|restart|halt)$/ { print "Broadcast message: The system is going down for reboot NOW !!"; } case /^!google/ { print "UTFG Yourself: http://google.com/"; } case /^!uptime$/ { print qx{uptime}; }