From cccf0b98698d00b5a381b7607bc1b45fc5559483 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 8 Oct 2013 17:23:21 +0100 Subject: [PATCH] Testing IRC Plugin --- PHPCI/Plugin/Irc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PHPCI/Plugin/Irc.php b/PHPCI/Plugin/Irc.php index 8658b103..64e8f523 100644 --- a/PHPCI/Plugin/Irc.php +++ b/PHPCI/Plugin/Irc.php @@ -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;