All pastes #793246 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-22 02:12 UTC
rendered paste body
<?php

set_timeout_limit(0);


$config = array(
	"server" => "irc.arg-irc.net",
	"port" => "6667",
	"ident" => "Somebot-PHP",
	"nick" => "Somebot"
);


$socks = connect();

function connect() {
	global $config;
	$sock = fsockopen($config["server"],$config["port"]);
	fwrite($sock, "USER ".$config["ident"]."\n");
	fwrite($sock, "NICK ".$config["nick"]."\n");
        fwrite($sock, "QUIT \n");
	return $sock;
}



?>