Ejemplo n.º 1
0
        echo "[Users ". $this->_xline[3] . "]\n";
        
        $i = 0;
        foreach ($this->getNickList($this->_xline[3]) as $nick) {
            if ($i > 4) {
                echo "\n";
                $i = 0;
            } else {
                echo "[ " . str_pad($nick, 10) . " ] ";
                $i++;
            }
        }
        
        echo "\n";
    }
}

$dummy = new Dummy;
$dummy->setDebug(false);
$dummy->setUser($USER, 'dummy', 'Yet Another PHP IRC Library', '+i');
$dummy->setServer($SERVER);

echo "starting yapircl test\n";

$dummy->connect();

echo "connected to $SERVER\n";

$dummy->run();
?>