From a1cf70cd89c991e0ff3502dfefc3ad2abaf8de7e Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Tue, 9 Aug 2011 13:59:35 +0200 Subject: [PATCH] Remove ... tags from XHTML messages --- backends/libpurple/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backends/libpurple/main.cpp b/backends/libpurple/main.cpp index b87c39b8..eda60eff 100644 --- a/backends/libpurple/main.cpp +++ b/backends/libpurple/main.cpp @@ -738,6 +738,14 @@ static void conv_write_im(PurpleConversation *conv, const char *who, const char g_free(xhtml_linkified); g_free(strip); + // AIM and XMPP adds ... here... + if (xhtml_.find("") == 0) { + xhtml_ = xhtml_.substr(6); + if (xhtml_.find("") != std::string::npos) { + xhtml_ = xhtml_.substr(0, xhtml_.find("")); + } + } + if (xhtml_ == message_) { xhtml_ = ""; }