X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FIrc%2Fextlib%2Fphergie%2FPhergie%2FPlugin%2FTea.php;fp=plugins%2FIrc%2Fextlib%2Fphergie%2FPhergie%2FPlugin%2FTea.php;h=0000000000000000000000000000000000000000;hb=c6f89b21748948fde902904f6ac9ce9afa026b84;hp=c6453566c71af3252f24dcc6fe1756d9f5b6ee01;hpb=597a3c89edd7200ab069f0e43c4f63406ca3d7f9;p=quix0rs-gnu-social.git diff --git a/plugins/Irc/extlib/phergie/Phergie/Plugin/Tea.php b/plugins/Irc/extlib/phergie/Phergie/Plugin/Tea.php deleted file mode 100644 index c6453566c7..0000000000 --- a/plugins/Irc/extlib/phergie/Phergie/Plugin/Tea.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright 2008-2010 Phergie Development Team (http://phergie.org) - * @license http://phergie.org/license New BSD License - * @link http://pear.phergie.org/package/Phergie_Plugin_Tea - */ - -/** - * Processes requests to serve users tea. - * - * @category Phergie - * @package Phergie_Plugin_Tea - * @author Phergie Development Team - * @license http://phergie.org/license New BSD License - * @link http://pear.phergie.org/package/Phergie_Plugin_Tea - * @uses Phergie_Plugin_Command pear.phergie.org - * @uses Phergie_Plugin_Serve pear.phergie.org - */ -class Phergie_Plugin_Tea extends Phergie_Plugin_Abstract -{ - /** - * Checks for dependencies. - * - * @return void - */ - public function onLoad() - { - $plugins = $this->plugins; - $plugins->getPlugin('Command'); - $plugins->getPlugin('Serve'); - } - - /** - * Processes requests to serve a user tea. - * - * @param string $request Request including the target and an optional - * suggestion of what tea to serve - * - * @return void - */ - public function onCommandTea($request) - { - $format = $this->getConfig( - 'tea.format', - 'serves %target% a cup of %item% tea.' - ); - - $this->plugins->getPlugin('Serve')->serve( - dirname(__FILE__) . '/Tea/tea.db', - 'tea', - $format, - $request - ); - } -}