--- a/libpurple/protocols/irc/irc.h Sat Aug 20 13:35:55 2016 -0500 +++ b/libpurple/protocols/irc/irc.h Sat Aug 20 23:00:56 2016 +0000 @@ -55,6 +55,8 @@ #define IRC_INITIAL_BUFSIZE 1024 +#define IRC_MAX_MSG_SIZE 512 + #define IRC_NAMES_FLAG "irc-namelist" enum { IRC_USEROPT_SERVER, IRC_USEROPT_PORT, IRC_USEROPT_CHARSET };