From 942ce88a75a4ef84c831c89ecf1666dd57124fc9 Mon Sep 17 00:00:00 2001 From: Luke Fitzgerald Date: Sun, 18 Jul 2010 12:40:07 -0700 Subject: [PATCH] Added send method to avoid having to call getDriver() --- .../Irc/extlib/phergie/Phergie/ExtendedBot.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php index 5d0d3adca1..32bb8bad37 100644 --- a/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php +++ b/plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php @@ -39,6 +39,23 @@ class Phergie_Extended_Bot extends Phergie_Bot { $this->loadConnections(); } + /** + * 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 *