add max-length option

I want to truncate a long message, because some irc-server disconnect the connection from a client that send a large message.