Added areafix command %LIST
This commit is contained in:
@@ -79,8 +79,16 @@ final class Areafix extends Process
|
||||
array_unshift($command,'%AREA');
|
||||
}
|
||||
|
||||
// Parse the message body and pluck out the commands on each line
|
||||
$class = self::areafix_commands.ucfirst(strtolower(substr($command[0],1)));
|
||||
// Some commands are reserved words
|
||||
switch ($x=strtolower(substr($command[0],1))) {
|
||||
case 'list':
|
||||
$class = self::areafix_commands.'Arealist';
|
||||
break;
|
||||
|
||||
default:
|
||||
// Parse the message body and pluck out the commands on each line
|
||||
$class = self::areafix_commands.ucfirst($x);
|
||||
}
|
||||
|
||||
if (! class_exists($class)) {
|
||||
$result->push(sprintf('%-25s <-- **COMMAND UNKNOWN**',join(' ',$command)));
|
||||
|
Reference in New Issue
Block a user