phpircbot2/commands/mods.global.php

14 lines
574 B
PHP
Raw Normal View History

2010-11-21 23:13:54 +01:00
<?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);
}
?>