libpurple/protocols/simple/simple.c

branch
soc.2013.gobjectification.plugins
changeset 37148
50f361d39a1e
parent 37146
b5b9c75a4b54
parent 36098
4951752ad038
child 37163
bdaa6ae19356
--- a/libpurple/protocols/simple/simple.c	Tue May 20 10:59:21 2014 +0530
+++ b/libpurple/protocols/simple/simple.c	Sat May 24 02:32:01 2014 +0530
@@ -1032,10 +1032,10 @@
 	g_free(fullto);
 }
 
-static int simple_im_send(PurpleConnection *gc, const char *who, const char *what, PurpleMessageFlags flags) {
+static int simple_im_send(PurpleConnection *gc, PurpleMessage *msg) {
 	struct simple_account_data *sip = purple_connection_get_protocol_data(gc);
-	char *to = g_strdup(who);
-	char *text = purple_unescape_html(what);
+	char *to = g_strdup(purple_message_get_recipient(msg));
+	char *text = purple_unescape_html(purple_message_get_contents(msg));
 	simple_send_message(sip, to, text, NULL);
 	g_free(to);
 	g_free(text);

mercurial