X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Bots%2FIPv6.class.php;fp=Bots%2FIPv6.class.php;h=52fe7d1493f81b1ef1322e7dc760d3aa050874c5;hb=d79551268f059f9163fc63d3a57a90766a6af24e;hp=36c6989dd9fb04c942b6d78b6b2405f74ec40d1c;hpb=5ba9f2f5aa8a9db4351cdee5d72b41e25b0d9331;p=PHP-P10.git diff --git a/Bots/IPv6.class.php b/Bots/IPv6.class.php index 36c6989..52fe7d1 100644 --- a/Bots/IPv6.class.php +++ b/Bots/IPv6.class.php @@ -53,7 +53,7 @@ class {$_NAME} extends Bot { } ModCMD::bind($this, BIND_JOIN, "recive_join"); - ModCMD::bind($this, BIND_MODE, "recive_mode"); + ModCMD::bind($this, BIND_CHANMODE, "recive_mode"); ModCMD::bind($this, BIND_KICK, "recive_kick"); ModCMD::bind($this, BIND_QUIT, "recive_quit"); } @@ -79,7 +79,7 @@ class {$_NAME} extends Bot { return ($privs & P10_Channel::USERPRIV_OPED); } - public function receive_join($user, $channel) { + public function recive_join($user, $channel, $isBurst) { if(!$this->botOppedOnChannel($channel)) return false; $ipv6 = '/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))(|\/[0-9]{1,3})$/'; if(preg_match($ipv6, $user->getIP())) {