]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added send method to avoid having to call getDriver()
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Sun, 18 Jul 2010 19:40:07 +0000 (12:40 -0700)
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Sun, 18 Jul 2010 19:40:07 +0000 (12:40 -0700)
plugins/Irc/extlib/phergie/Phergie/ExtendedBot.php

index 5d0d3adca1a31c87f31faa0cf89b3306bec8a9c6..32bb8bad379ddc99bb3c689cd09dc1317e7d3811 100644 (file)
@@ -39,6 +39,23 @@ class Phergie_Extended_Bot extends Phergie_Bot {
         $this->loadConnections();\r
     }\r
 \r
+    /**\r
+    * Transmit raw command to server using driver\r
+    *\r
+    * Handles construction of command strings and their transmission to the\r
+    * server.\r
+    *\r
+    * @param string       $command Command to send\r
+    * @param string|array $args    Optional string or array of sequential\r
+    *        arguments\r
+    *\r
+    * @return string Command string that was sent\r
+    * @throws Phergie_Driver_Exception\r
+    */\r
+    public function send($command, $args = '') {\r
+        $this->getDriver()->send($command, $args);\r
+    }\r
+\r
     /**\r
     * Get the sockets used by the bot\r
     *\r