format
[PHP-P10.git] / Bots / ModManager.class.php
index 0077f1c0bf5d0de6a89a2baba419a37ac9c9fc7a..38281f40c584b71f8298ca011e7312d7215d29e5 100644 (file)
@@ -6,7 +6,7 @@
  * it under the terms of the GNU General Public License as published by *
  * the Free Software Foundation, either version 3 of the License, or    *
  * (at your option) any later version.                                  *
- *                                                                      * 
+ *                                                                      *
  * This program is distributed in the hope that it will be useful,      *
  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
@@ -16,7 +16,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
  *                                                                      *
  ************************************************************************
- * 
+ *
  *  Bots/ModManager.class.php
  *
  * module manager bot...
@@ -26,7 +26,7 @@
 class {$_NAME} extends Bot {
        private $uplink;
        private $modman;
-       
+
        public function load($uplink, $old = false) {
                $this->uplink = $uplink;
                if(!$old) {
@@ -44,12 +44,12 @@ class {$_NAME} extends Bot {
                } else {
                        $this->modman = $old;
                }
-               
+
                ModCMD::bind($this, BIND_CHANMSG, "recive_privmsg");
                ModCMD::bind($this, BIND_QUIT, "recive_quit");
                ModCMD::bind($this, BIND_CTCP, "recive_ctcp");
        }
-       
+
        public function unload($rehash = false) {
                if($rehash) {
                        return $this->modman;
@@ -57,7 +57,7 @@ class {$_NAME} extends Bot {
                        $this->uplink->delUser($this->modman, "Bye.");
                }
        }
-       
+
        public function recive_privmsg($user, $channel, $message) {
                if(!$user->getModes()->hasMode('o')) return 0;
                $exp=explode(" ",$message);
@@ -109,13 +109,13 @@ class {$_NAME} extends Bot {
                                break;
                }
        }
-       
+
        public function recive_quit($user, $reason) {
                if($user === $this->modman) {
                        $this->load($this->uplink);
                }
        }
-       
+
        public function recive_ctcp($user, $target, $command, $text, $publicCtcp) {
                if(!$publicCtcp) {
                        switch($command) {