Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while((line = reader.readLine()) != null){
- if(line.startsWith("PING ")){
- writer.write("PONG " + line.substring(5) + " \r\n");
- writer.write("PRIVMSG " + channel + " : I got pinged:\r\n");
- writer.flush();
- }
- else
- System.out.println(line);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement