diff options
author | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-07-20 11:16:59 -0700 |
---|---|---|
committer | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-07-20 11:16:59 -0700 |
commit | efdf9b6d4e3c6e8c4ce49a5d5f9e42658d1dc004 (patch) | |
tree | 77df03872276de9b3cfaad39839d3d638ce7e25a /plugins/Irc/extlib/phergie | |
parent | 1e5198645c0588cec11ff0bcd5e2864e88da3cdf (diff) |
Code now functional - lots of error checking and extras missing still though
Diffstat (limited to 'plugins/Irc/extlib/phergie')
-rw-r--r-- | plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php | 14 | ||||
-rw-r--r-- | plugins/Irc/extlib/phergie/Phergie/Process/Statusnet.php | 2 |
2 files changed, 13 insertions, 3 deletions
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);
}
|