rendered paste body// Connection code:
public DeltaBot(String n, String u) throws UnknownHostException, IOException {
nick = n;
user = u;
Socket sock = new Socket ("irc.freenode.net", 6667);
inStream = new Scanner (sock.getInputStream ());
outStream = new BufferedWriter (new OutputStreamWriter (sock
.getOutputStream ()));
outStream.write ("NICK " + nick);
outStream.write ("USER " + user + " 8 * :"+user+"2007");
outStream.flush ();
}
// Lines received from server
NOTICE AUTH :*** Looking up your hostname...
NOTICE AUTH :*** Found your hostname, welcome back
NOTICE AUTH :*** Checking ident
NOTICE AUTH :*** No identd (auth) response
ERROR :Closing Link: 127.0.0.1 (Connection Timed Out)