Testing IRC Plugin

This commit is contained in:
Dan Cryer 2013-10-08 17:23:21 +01:00
parent e869e41f25
commit cccf0b9869

View file

@ -51,6 +51,11 @@ class Irc implements \PHPCI\Plugin
fputs($sock, 'USER ' . $this->nick . ' phptesting.org ' . $this->nick . ' :' . $this->nick . "\r\n");
fputs($sock, 'NICK ' . $this->nick . "\r\n");
fputs($sock, 'PRIVMSG ' . $this->room . ' :' . $msg . "\r\n");
while ($res = fgets($sock)) {
$this->phpci->log($res);
}
fclose($sock);
return true;