added #CoderCom channel to all debugger bots
authorpk910 <philipp@zoelle1.de>
Sat, 3 Dec 2011 20:56:57 +0000 (21:56 +0100)
committerpk910 <philipp@zoelle1.de>
Sat, 3 Dec 2011 20:56:57 +0000 (21:56 +0100)
Bots/CGod.class.php
Bots/JavaGod.class.php
Bots/PHPGod.class.php
Bots/PerlGod.class.php

index cac602841289ca31d4688659b70dd17fed161550..bbf68460d41b677cbb5fe73b0bb1c653426bf62b 100644 (file)
@@ -40,6 +40,7 @@ class {$_NAME} extends Bot {
                        if(is_a($this->c, "P10_User")) {
                                $this->uplink->join($this->c, "#c", (P10_Channel::USERPRIV_OPED | P10_Channel::USERPRIV_VOICE));
                                $this->uplink->join($this->c, "#dev", P10_Channel::USERPRIV_VOICE);
+                $this->uplink->join($this->c, "#CoderCom", P10_Channel::USERPRIV_VOICE);
                        }
                } else {
                        $this->c = $old;
index 7d72cce361cf26afa73d2031f1674857b19edb3e..11b04e60277d4bcf079adcf3fa5065ee7d91df48 100644 (file)
@@ -40,6 +40,7 @@ class {$_NAME} extends Bot {
                        if(is_a($this->bot, "P10_User")) {
                                $this->uplink->join($this->bot, "#java", (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;
index b449bacdfa0918ad7dcb5b6d551d530be1382925..206bfe0200d850b6e06e73785cdbbb7f713022a4 100644 (file)
@@ -40,6 +40,7 @@ class {$_NAME} extends Bot {
                        if(is_a($this->php, "P10_User")) {
                                $this->uplink->join($this->php, "#php", (P10_Channel::USERPRIV_OPED | P10_Channel::USERPRIV_VOICE));
                                $this->uplink->join($this->php, "#dev", P10_Channel::USERPRIV_VOICE);
+                $this->uplink->join($this->php, "#CoderCom", P10_Channel::USERPRIV_VOICE);
                        }
                } else {
                        $this->php = $old;
index f992eb21597f2e4afeb256e4f650b5940c7dfb0a..c7c388ab12c0fef280e897914745dccf0627af85 100644 (file)
@@ -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":