# HG changeset patch # User quantifier666@gmail.com # Date 1296323728 0 # Node ID 1607b413a1392abe39ef1fda64ce3e522b0df1e6 # Parent 060739bdc84d1c71ba271c3b27e25d618315d034 gg: Prevent dropping whole messages when the text is colored. Fixes #13259. committer: John Bailey diff -r 060739bdc84d -r 1607b413a139 libpurple/protocols/gg/gg.c --- a/libpurple/protocols/gg/gg.c Wed Jan 26 18:48:19 2011 +0000 +++ b/libpurple/protocols/gg/gg.c Sat Jan 29 17:55:28 2011 +0000 @@ -1464,6 +1464,10 @@ increased_len += 4; under = FALSE; } + + if (actformat->font & GG_FONT_COLOR) { + cformats += sizeof(struct gg_msg_richtext_color); + } } msg = message->str;