X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Bots%2FPerlGod.class.php;h=0eb0a634647ce172ed10e6450cda89987a662ffd;hp=f992eb21597f2e4afeb256e4f650b5940c7dfb0a;hb=811bc0c7a1f583fb624a0f8c3601146e063c5a25;hpb=f52b0ba53718b1e7354d4ca894d0aeeff5342b16 diff --git a/Bots/PerlGod.class.php b/Bots/PerlGod.class.php index f992eb2..0eb0a63 100644 --- a/Bots/PerlGod.class.php +++ b/Bots/PerlGod.class.php @@ -1,6 +1,6 @@ bot, "P10_User")) { $this->uplink->join($this->bot, "#perl", (P10_Channel::USERPRIV_OPED | P10_Channel::USERPRIV_VOICE)); $this->uplink->join($this->bot, "#dev", P10_Channel::USERPRIV_VOICE); + $this->uplink->join($this->bot, "#CoderCom", P10_Channel::USERPRIV_VOICE); } } else { $this->bot = $old; @@ -72,13 +73,13 @@ class {$_NAME} extends Bot { } function recive_privmsg($user, $channel, $message) { - $opOnPHPChannel = false; - $entryChannel = P10_Channel::getChannelByName("#PHP"); + $opOnPerlChannel = false; + $entryChannel = P10_Channel::getChannelByName("#Perl"); if($entryChannel) { $privs = $entryChannel->getUserPrivs($user); - $opOnPHPChannel = ($privs & P10_Channel::USERPRIV_OPED); + $opOnPerlChannel = ($privs & P10_Channel::USERPRIV_OPED); } - if(!$user->getModes()->hasMode('o') && !$opOnPHPChannel) return 0; + if(!$user->getModes()->hasMode('o') && !$opOnPerlChannel) return 0; $exp=explode(" ", $message, 2); switch (strtolower($exp[0])) { case "~perl":