summaryrefslogtreecommitdiff
path: root/plugins/Irc/extlib
diff options
context:
space:
mode:
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>2010-07-18 12:40:07 -0700
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>2010-07-18 12:40:07 -0700
commit942ce88a75a4ef84c831c89ecf1666dd57124fc9 (patch)
tree3f1fade6ed7987c6f349a3db04e15a0bf98d54e7 /plugins/Irc/extlib
parent7f2555126a165f75f2681da4a4bece5c05cc1694 (diff)
Added send method to avoid having to call getDriver()
Diffstat (limited to 'plugins/Irc/extlib')
-rw-r--r--plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php
index 5d0d3adca..32bb8bad3 100644
--- a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php
+++ b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php
@@ -40,6 +40,23 @@ class Phergie_Extended_Bot extends Phergie_Bot {
}
/**
+ * Transmit raw command to server using driver
+ *
+ * Handles construction of command strings and their transmission to the
+ * server.
+ *
+ * @param string $command Command to send
+ * @param string|array $args Optional string or array of sequential
+ * arguments
+ *
+ * @return string Command string that was sent
+ * @throws Phergie_Driver_Exception
+ */
+ public function send($command, $args = '') {
+ $this->getDriver()->send($command, $args);
+ }
+
+ /**
* Get the sockets used by the bot
*
* @return array Array of socket resources