phpircbot2/commands/sys.query.php

7 lines
248 B
PHP
Raw Permalink Normal View History

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