]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Irc/extlib/phergie/Phergie/Plugin/Invisible.php
MINOR: Please don't set a+x on files which are not being executed as shell script...
[quix0rs-gnu-social.git] / plugins / Irc / extlib / phergie / Phergie / Plugin / Invisible.php
1 <?php
2 /**
3  * Phergie 
4  *
5  * PHP version 5
6  *
7  * LICENSE
8  *
9  * This source file is subject to the new BSD license that is bundled
10  * with this package in the file LICENSE.
11  * It is also available through the world-wide-web at this URL:
12  * http://phergie.org/license
13  *
14  * @category  Phergie 
15  * @package   Phergie_Plugin_Invisible
16  * @author    Phergie Development Team <team@phergie.org>
17  * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
18  * @license   http://phergie.org/license New BSD License
19  * @link      http://pear.phergie.org/package/Phergie_Plugin_Invisible
20  */
21
22 /**
23  * Marks the bot as invisible when it connects to the server.
24  *
25  * @category Phergie 
26  * @package  Phergie_Plugin_Invisible
27  * @author   Phergie Development Team <team@phergie.org>
28  * @license  http://phergie.org/license New BSD License
29  * @link     http://pear.phergie.org/package/Phergie_Plugin_Invisible
30  * @link     http://irchelp.org/irchelp/rfc/chapter4.html#c4_2_3_2
31  */
32 class Phergie_Plugin_Invisible extends Phergie_Plugin_Abstract
33 {
34     /**
35      * Marks the bot as invisible when it connects to the server.
36      *
37      * @return void
38      */
39     public function onConnect()
40     {
41         $this->doMode($this->getConnection()->getNick(), '+i');
42         $this->getPluginHandler()->removePlugin($this);
43     }
44 }