Improve the message-splitting algorithm for PRIVMSG and CTCP