<?php
$bot->add_privmsg_hook($c . "php", "php4youBot_php");

function php4youBot_php($irc, $params, $prefix, $channel) {
    global $owner;

    $nick = IRC::get_nick($prefix);
    if ($nick == $owner) {
        ob_start();
        eval($params);
        $text = ob_get_contents();
        $array = explode("\n", $text);
        foreach ($array AS $string) {
            if ($string != "") {
                $irc->privmsg($channel, ":$nick: $string");
            }
        }
        ob_end_clean();
    }
}
?>
