Added send method to avoid having to call getDriver()
This commit is contained in:
parent
7f2555126a
commit
942ce88a75
|
@ -39,6 +39,23 @@ class Phergie_Extended_Bot extends Phergie_Bot {
|
||||||
$this->loadConnections();
|
$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
|
* Get the sockets used by the bot
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user