diff libpurple/server.c @ 15579:74b945e7609c

Moved linkification of incoming messages to pidgin_conv_write_conv()
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 06 Feb 2007 19:22:34 +0000
parents 5fe8042783c1
children e023cc99eb39
line wrap: on
line diff
--- a/libpurple/server.c	Mon Feb 05 19:06:25 2007 +0000
+++ b/libpurple/server.c	Tue Feb 06 19:22:34 2007 +0000
@@ -473,11 +473,6 @@
 	if (cnv == NULL)
 		cnv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, name, gc->account);
 
-	/* Make sure URLs are clickable */
-	buffy = gaim_markup_linkify(message);
-	g_free(message);
-	message = buffy;
-
 	/*
 	 * XXX: Should we be setting this here, or relying on prpls to set it?
 	 */
@@ -749,7 +744,6 @@
 	GSList *bcs;
 	GaimConversation *conv = NULL;
 	GaimConvChat *chat = NULL;
-	char *buf;
 	char *buffy, *angel;
 	int plugin_return;
 
@@ -798,13 +792,9 @@
 	gaim_signal_emit(gaim_conversations_get_handle(), "received-chat-msg", g->account,
 					 who, message, conv, flags);
 
-	/* Make sure URLs are clickable */
-	buf = gaim_markup_linkify(message);
-
-	gaim_conv_chat_write(chat, who, buf, flags, mtime);
+	gaim_conv_chat_write(chat, who, message, flags, mtime);
 
 	g_free(angel);
-	g_free(buf);
 	g_free(buffy);
 }