?>vars['botstatus'] = "on"; // print_r($line); $bits = explode(" ", $line['raw']); if (strtoupper($bits[1]) == "NOTICE") { if ($line['cmd'] == "boton" && $line['fromNick'] == "webvictim") { $this->vars['botstatus'] = "on"; $this->ircClass->notice($line['fromNick'], "webUno bot is now switched on."); } elseif ($line['cmd'] == "botoff" && $line['fromNick'] == "webvictim") { $this->vars['botstatus'] = "off"; $this->ircClass->notice($line['fromNick'], "webUno bot is now switched off."); } elseif ($line['cmd'] == "botstatus" && $line['fromNick'] == "webvictim") { $this->ircClass->notice($line['fromNick'], "The webUno bot is currently switched ".$_B.$this->vars['botstatus'].$_B); } return; } elseif (strtoupper($bits[1]) == "QUIT") { $line['to'] = $line['arg2']; $this->ircClass->privMsg($line['to'], "Goodbye, ".$_B.$line['fromNick'].$_B); return; } elseif ($line['arg1'] == "PART") { $line['to'] = $line['arg2']; $this->ircClass->privMsg($line['to'], "Goodbye, ".$_B.$line['fromNick'].$_B); return; } elseif ($line['arg1'] == "JOIN") { $line['to'] = $line['arg2']; $this->ircClass->privMsg($line['to'], "Welcome, ".$_B.$line['fromNick'].$_B."!"); return; } switch($line['cmd']) { case "bottalk": $this->ircClass->privMsg($channel, "Hello ".$line['fromNick']."."); break; } ?>