All pastes #793228 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-22 01:50 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");
	return $sock;
}



?>