package info.pwnds.irc; import java.net.Socket; import java.io.IOException; /** * Date: Mar 30, 2007 * * @author Robert Saunders (Pwnd) * @todo this */ public class IRC { Socket s; String username; Utils utils = new Utils(); public IRC(String username) { this.username = username; } public boolean connect(String host, int port) throws IOException { s = new Socket(host, port); utils.startUtils(s); utils.sendRawLine("NICK " + username); utils.sendRawLine("USER " + username + " 8 * pwnd's_bot_tbh"); utils.sendRawLine("JOIN #pwndsemobot"); new InputThread(utils).start(); return false; } }