rendered paste body?><?php
error_reporting(E_ALL & ~E_NOTICE);
$_B = chr(2);
$_C['D'] = " ".chr(3).$_B;
$_C['R'] = $_B.chr(3)."4,5 ";
$_C['Y'] = $_B.chr(3)."7,8 ";
$_C['G'] = $_B.chr(3)."9,3 ";
$_C['B'] = $_B.chr(3)."11,2 ";
$_C['W'] = $_B.chr(3)."4,1 W".chr(3)."12,1I".chr(3)."8,1L".chr(3)."9,1D";
$_C['WD4'] = $_B.chr(3)."4,1 W".chr(3)."8,1D".chr(3)."12,014";
$_LOGO = chr(3)."4k".chr(3)."2U".chr(3)."7n".chr(3)."3o".chr(3);
$channel = $line['to'];
$nick = $line['fromNick'];
// default start status for the bot
$this->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;
}
?><?php