X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Bots%2FModManager.class.php;h=38281f40c584b71f8298ca011e7312d7215d29e5;hb=HEAD;hp=f9b5b2679a841ab6e29f08c440e498bd5912c15b;hpb=b4929d2fc7944f7b3d0efc666a2bff0cd7f821cb;p=PHP-P10.git diff --git a/Bots/ModManager.class.php b/Bots/ModManager.class.php index f9b5b26..38281f4 100644 --- a/Bots/ModManager.class.php +++ b/Bots/ModManager.class.php @@ -1,12 +1,12 @@ . * * * ************************************************************************ - * + * * 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) {