Originariamente inviato da Franzis
allora ho sostituito print cn println perkè ho controllato su internet e ho visto ke l'end of line è \n.
Il formato del "end-of-line" dipende dal sistema operativo, può essere
- CR+LF (DOS/Windows)
- LF (Linux/Unix)
- CR (Mac)

Comunque le classi di I/O per la lettura (es. BufferedReader) accettano tranquillamente un EOL in uno qualunque dei 3 formati.

Originariamente inviato da Franzis
Quello della risposta del server dovrebbe essere lo stesso?
cmq mi voglio connettere ad un server IRC
Allora dovresti leggere molto bene la documentazione del protocollo IRC:

RFC 1459 - Internet Relay Chat Protocol

In particolare dice:

Servers and clients send eachother messages which may or may not generate a reply. If the message contains a valid command, as described in later sections, the client should expect a reply as specified but it is not advised to wait forever for the reply; client to server and server to server communication is essentially asynchronous in nature.
[...]
IRC messages are always lines of characters terminated with a CR-LF (Carriage Return - Line Feed) pair, and these messages shall not exceed 512 characters in length, counting all characters including the trailing CR-LF.

Buona lettura.