changeset 1889:c81f3dd0e58e

[gaim-migrate @ 1899] don't linkify urls for non-html-enabled protocols committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 24 May 2001 21:12:36 +0000
parents dedcd9e6f3e8
children 585e26835e00
files src/conversation.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu May 24 21:08:24 2001 +0000
+++ b/src/conversation.c	Thu May 24 21:12:36 2001 +0000
@@ -772,12 +772,12 @@
 		return;
 	}
 
-	if (general_options & OPT_GEN_SEND_LINKS)
-		linkify_text(buf);
-
 	buf2 = g_malloc(limit);
 
 	if (c->gc->prpl->options & OPT_PROTO_HTML) {
+		if (general_options & OPT_GEN_SEND_LINKS)
+			linkify_text(buf);
+
 		if (font_options & OPT_FONT_BOLD) {
 			g_snprintf(buf2, limit, "<B>%s</B>", buf);
 			strcpy(buf, buf2);