All pastes #236470 Raw Edit

Untitled

public text v1 · immutable
·published 2006-11-03 20:35 UTC
rendered paste body
                if (strtolower(substr($msgwithoutident, 0, 4)) == 'join' && $data->host == "unaffiliated/aheartattack/x-000001")
                {
                        $message = substr($msgwithoutident, 5, strlen($msgwithoutident)-5);
                        $irc->join($message);
                }






		if (strtolower(substr($msgwithoutident, 0, 4)) == 'part' && $data->host == "unaffiliated/aheartattack/x-000001") 
		{
			$message = substr($msgwithoutident, 5, strlen($msgwithoutident)-5);
			$irc->part($message, $txt);
		}





                if (strtolower(substr($msgwithoutident, 0, 7)) == 'driveby')
                {
 
                        $message = substr($msgwithoutident, 8, strlen($msgwithoutident)-8);
                        list($message, $txt) = explode(" ", $message, 2);
                        $irc->join($message);
                        $irc->message(SMARTIRC_TYPE_CHANNEL, $message, $txt);
                        $irc->part($message, "DRIVEBY!");
                }