Ported all scripts from PURPLE_ to ANSW_ prefix. Added examples to support STATUS...
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / menu.pl
index 5c0c593..d7afa4e 100755 (executable)
@@ -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}; }
This page took 0.10252 seconds and 4 git commands to generate.