--- a/pidgin/gtkconv.c Tue Jun 01 17:34:45 2021 -0500
+++ b/pidgin/gtkconv.c Tue Jun 01 17:35:17 2021 -0500
@@ -3976,7 +3976,6 @@
- PurplePluginProtocolInfo *prpl_info;
@@ -3997,7 +3996,7 @@
gtkchat = gtkconv->u.chat;
gc = purple_conversation_get_gc(conv);
- if (!gc || !(prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl)))
+ if (!gc || !(PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl))) tm = gtk_tree_view_get_model(GTK_TREE_VIEW(gtkchat->list));
@@ -4275,10 +4274,15 @@
addthis = g_strconcat(tmp, matches->data, " ", NULL);
matches = g_list_remove(matches, matches->data);
purple_conversation_write(conv, NULL, addthis, PURPLE_MESSAGE_NO_LOG,
@@ -5967,7 +5971,6 @@
char *alias_escaped = (alias ? g_markup_escape_text(alias, strlen(alias)) : g_strdup(""));
/* The initial offset is to deal with
* escaped entities making the string longer */
- int tag_start_offset = 0;
const char *tagname = NULL;
@@ -5984,25 +5987,18 @@
/* If we're whispering, it's not an autoresponse. */
if (purple_message_meify(new_message, -1 )) {
g_snprintf(str, 1024, "***%s", alias_escaped);
tagname = "whisper-action-name";
g_snprintf(str, 1024, "*%s*:", alias_escaped);
tagname = "whisper-name";
if (purple_message_meify(new_message, -1)) {
if (flags & PURPLE_MESSAGE_AUTO_RESP) {
g_snprintf(str, 1024, "%s ***%s", AUTO_RESPONSE, alias_escaped);
- tag_start_offset += strlen(AUTO_RESPONSE) - 6 + 4;
g_snprintf(str, 1024, "***%s", alias_escaped);
if (flags & PURPLE_MESSAGE_NICK)
@@ -6012,12 +6008,8 @@
if (flags & PURPLE_MESSAGE_AUTO_RESP) {
g_snprintf(str, 1024, "%s %s", alias_escaped, AUTO_RESPONSE);
- tag_start_offset += strlen(AUTO_RESPONSE) - 6 + 1;
g_snprintf(str, 1024, "%s:", alias_escaped);
if (flags & PURPLE_MESSAGE_NICK) {
@@ -6081,7 +6073,11 @@
memcpy(with_font_tag + pre_len, new_message, length);
strcpy(with_font_tag + pre_len + length, post);
- length += pre_len + post_len;
+ /* Previously this might have been used later in the fuction, so + * I'm just commenting it for now. -- GK 2021-06-01 + /* length += pre_len + post_len; */ with_font_tag = g_memdup2(new_message, length);