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;
}
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":