Added send method to avoid having to call getDriver()

This commit is contained in:
Luke Fitzgerald 2010-07-18 12:40:07 -07:00
parent 7f2555126a
commit 942ce88a75

View File

@ -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
*