/pidgin/main: 922720634101: Fix the writing-im-msg callback in c...
Richard Laager
rlaager at pidgin.im
Tue Dec 29 12:56:33 EST 2015
Changeset: 92272063410165137736ecc3029c2b63c726b81e
Author: Richard Laager <rlaager at pidgin.im>
Date: 2015-12-29 11:56 -0600
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/922720634101
Description:
Fix the writing-im-msg callback in codeinline.c
This is similar to the fix in signals-test.c that I just commited from
Koosha Khajehmoogahi. I haven't tested it, but it's consistent with
the other signal handler in this file.
diffstat:
libpurple/plugins/codeinline.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (23 lines):
diff --git a/libpurple/plugins/codeinline.c b/libpurple/plugins/codeinline.c
--- a/libpurple/plugins/codeinline.c
+++ b/libpurple/plugins/codeinline.c
@@ -41,15 +41,11 @@ outgoing_msg_common(const char *message)
return g_strjoinv("</font>", ms);
}
-static gboolean outgoing_msg_cb1(PurpleAccount *account, const char *who, char **message,
- PurpleConversation *conv, PurpleMessageFlags flags, gpointer null)
+static gboolean outgoing_msg_cb1(PurpleConversation *conv, PurpleMessage *msg,
+ gpointer null)
{
- char *m;
-
- m = outgoing_msg_common(*message);
- g_free(*message);
- *message = m;
-
+ purple_message_set_contents(msg,
+ outgoing_msg_common(purple_message_get_contents(msg)));
return FALSE;
}
More information about the Commits
mailing list