if (strtolower(substr($msgwithoutident, 0, 4)) == 'join' && $data->host == "unaffiliated/aheartattack/x-000001") { $message = substr($msgwithoutident, 5, strlen($msgwithoutident)-5); $irc->join($message); array_push($message, $chans); $valid_function = true; } if (strtolower(substr($msgwithoutident, 0, 4)) == 'part' && $data->host == "unaffiliated/aheartattack/x-000001") { $message = substr($msgwithoutident, 5, strlen($msgwithoutident)-5); $irc->part($message, $txt); $valid_function = true; } if (strtolower(substr($msgwithoutident, 0, 8)) == 'channels') { $msgwithoutcommand = substr($msgwithoutident, 9, strlen($msgwithoutident)-9); $channels = implode(', ', $chans); $irc->message(SMARTIRC_TYPE_CHANNEL, $recip, "I'm currently in ".$channels.", ".$data->nick."."); $valid_function = true; }