From efdf9b6d4e3c6e8c4ce49a5d5f9e42658d1dc004 Mon Sep 17 00:00:00 2001 From: Luke Fitzgerald Date: Tue, 20 Jul 2010 11:16:59 -0700 Subject: Code now functional - lots of error checking and extras missing still though --- plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php | 14 ++++++++++++-- plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'plugins/Irc/extlib') diff --git a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php index 32bb8bad3..113bb8b51 100644 --- a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php +++ b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php @@ -25,7 +25,7 @@ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ -class Phergie_Extended_Bot extends Phergie_Bot { +class Phergie_ExtendedBot extends Phergie_Bot { /** * Set up bot and connect to servers * @@ -53,7 +53,17 @@ class Phergie_Extended_Bot extends Phergie_Bot { * @throws Phergie_Driver_Exception */ public function send($command, $args = '') { - $this->getDriver()->send($command, $args); + return $this->getDriver()->send($command, $args); + } + + /** + * Handle incoming data on the socket using the handleEvents + * method of the Processor + * + * @return void + */ + public function receive() { + $this->getProcessor()->handleEvents(); } /** diff --git a/plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php b/plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php index c5999956b..672e6f610 100644 --- a/plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php +++ b/plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php @@ -27,7 +27,7 @@ */ class Phergie_Process_Statusnet extends Phergie_Process_Async { - public function __constuct(Phergie_Extended_Bot $bot, array $options) { + public function __construct(Phergie_ExtendedBot $bot, array $options) { $this->usec = 0; Phergie_Process_Abstract::__construct($bot, $options); } -- cgit v1.2.3-54-g00ecf