summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Zachorowski <quantifier666@gmail.com>2011-01-29 17:55:28 +0000
committerJan Zachorowski <quantifier666@gmail.com>2011-01-29 17:55:28 +0000
commit9c15c475bdd917ada5ef5e9931b97715cfa74d09 (patch)
treef89fb7f7e290fa499a835927b47e6e36112f3265
parentae11ba914930fa59b6aacfd076dfb81bf25ee49d (diff)
downloadpidgin-9c15c475bdd917ada5ef5e9931b97715cfa74d09.tar.gz
gg: Prevent dropping whole messages when the text is colored. Fixes #13259.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
-rw-r--r--libpurple/protocols/gg/gg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c
index b5754cd97c..514c7f16b3 100644
--- a/libpurple/protocols/gg/gg.c
+++ b/libpurple/protocols/gg/gg.c
@@ -1464,6 +1464,10 @@ static void ggp_recv_message_handler(PurpleConnection *gc, const struct gg_event
increased_len += 4;
under = FALSE;
}
+
+ if (actformat->font & GG_FONT_COLOR) {
+ cformats += sizeof(struct gg_msg_richtext_color);
+ }
}
msg = message->str;