phpircbot2/commands/sys.query.php
Jan Philipp Timme 6b39d44754 Initial import.
2010-11-21 22:13:54 +00:00

7 lines
248 B
PHP

<?php
#BOT_INCLUDE "sys" "query" "9"
$cmd = $this -> protocol -> getArgs(1, $recv);
$result = $this -> eval_sys($cmd);
$this -> call("privmsg", $recv["nick"], $cmd);
foreach($result as $line) $this -> call("privmsg", $recv["nick"], $line);
?>