#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Belgium
    Posts
    39
    Rep Power
    14

    Need help writing IRC-client


    PHP Code:
    Connecting toirc.shrimpwars.be (6667)
    Connected....
    Done initializing....
    Logged on to server...
    NOTICE AUTH :*** Looking up your hostname
    NOTICE AUTH 
    :*** Checking Ident
    NOTICE AUTH 
    :*** Found your hostname
    NOTICE AUTH 
    :*** No ident response
    PING
    PONG?
    :
    ngi1.it.quakenet.org 513 HavTest :Your client may not be compatible with this server.
    :
    ngi1.it.quakenet.org 513 HavTest :Compatible clients are available at ....
    ERROR :Closing LinkHavTest by ngi1.it.quakenet.org (Ping timeout
    What is wrong with that?
    PHP Code:
    try{
                if(
    msg.startsWith("PING")){
                    
    dataOut.write("PONG" msg.substring(4) + "\r\n");
                    
    System.out.println("PING? PONG?");
                    
    dataOut.flush();
                }else{
                    
    System.out.println(msg);
                }
            }catch(
    IOException e){
                
    System.out.println("Error reading data!");
                
    System.err.println(e.getMessage());
            } 
    Send me pages to read anything

    how can I fix this?
    Last edited by H@voc_!nc.; February 25th, 2003 at 02:31 PM.
    With Your Hand On A Hot Stove, Fifteen Seconds Can Seem Like Fifteen Minutes. Fifteen Minutes Can Seem Fifteen Seconds When You Are With A Beautiful Woman. That's The Theory Of Relativity

    -- Albert Einstein \\

IMN logo majestic logo threadwatch logo seochat tools logo