14 lines
574 B
PHP
14 lines
574 B
PHP
|
<?php
|
||
|
#BOT_INCLUDE "mods" "global" "0"
|
||
|
if(is_numeric($level = $this -> protocol -> getArgs(1, $recv))){
|
||
|
$text[] = "Commands for level ".$level.": (example: command(level) (*=query command, #=channel command))";
|
||
|
$text[] = $this -> commands -> getList($level);
|
||
|
foreach($text as $line) $this -> call("notice", $recv["nick"], $line);
|
||
|
}
|
||
|
else{
|
||
|
$text[] = "Installed commands: (example: command(level) (*=query command, #=channel command))";
|
||
|
$text[] = $this -> commands -> getList(9);
|
||
|
foreach($text as $line) $this -> call("notice", $recv["origin"], $line);
|
||
|
}
|
||
|
?>
|