X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Bots%2FPerlGod.class.php;fp=Bots%2FPerlGod.class.php;h=c7c388ab12c0fef280e897914745dccf0627af85;hp=f992eb21597f2e4afeb256e4f650b5940c7dfb0a;hb=4d50394706e715ed74a7f25d3c1800817d14ec8a;hpb=f52b0ba53718b1e7354d4ca894d0aeeff5342b16 diff --git a/Bots/PerlGod.class.php b/Bots/PerlGod.class.php index f992eb2..c7c388a 100644 --- a/Bots/PerlGod.class.php +++ b/Bots/PerlGod.class.php @@ -40,6 +40,7 @@ class {$_NAME} extends Bot { if(is_a($this->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":