Alright, so I have been having this problem for a while, and I need some help. I use this command to try and send a PONG to the Irc Server, but it doesn’t want to work.
You’d be better off asking this in a JAVA forum, but I can tell you where this goes wrong:
line.toLowerCase().startsWith("PING ")
You’re comparing a lower case String to an upper case one.
Also, to make it easier on yourself, you can instead of writing and then flushing to the socket, use the println() method on a PrintWriter to write to the output stream (this will then send a new line without all the extra code)