From 4d50394706e715ed74a7f25d3c1800817d14ec8a Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 3 Dec 2011 21:56:57 +0100 Subject: [PATCH] added #CoderCom channel to all debugger bots --- Bots/CGod.class.php | 1 + Bots/JavaGod.class.php | 1 + Bots/PHPGod.class.php | 1 + Bots/PerlGod.class.php | 9 +++++---- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Bots/CGod.class.php b/Bots/CGod.class.php index cac6028..bbf6846 100644 --- a/Bots/CGod.class.php +++ b/Bots/CGod.class.php @@ -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; diff --git a/Bots/JavaGod.class.php b/Bots/JavaGod.class.php index 7d72cce..11b04e6 100644 --- a/Bots/JavaGod.class.php +++ b/Bots/JavaGod.class.php @@ -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; diff --git a/Bots/PHPGod.class.php b/Bots/PHPGod.class.php index b449bac..206bfe0 100644 --- a/Bots/PHPGod.class.php +++ b/Bots/PHPGod.class.php @@ -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; 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": -- 2.20.1