diff src/conversation.c @ 5539:de09863bd4b5

[gaim-migrate @ 5939] Split Show URLs as Links into Show URLs as Links and Send URLs as Links, and converted them to the new prefs system. Also, added a function in gtkprefs.c called prefs_checkbox(), which works with the new prefs. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 27 May 2003 20:10:21 +0000
parents ad445074d239
children 7a64114641c3
line wrap: on
line diff
--- a/src/conversation.c	Tue May 27 08:09:10 2003 +0000
+++ b/src/conversation.c	Tue May 27 20:10:21 2003 +0000
@@ -32,6 +32,7 @@
 #include "gaim.h"
 #include "prpl.h"
 #include "notify.h"
+#include "prefs.h"
 
 #ifdef _WIN32
 #include "win32dep.h"
@@ -213,8 +214,11 @@
 
 	buf2 = g_malloc(limit);
 
-	if (gc->flags & OPT_CONN_HTML && convo_options & OPT_CONVO_SEND_LINKS)
-		buffy =linkify_text(buf);
+	if ((gc->flags & OPT_CONN_HTML) &&
+		gaim_prefs_get_bool("/core/conversations/send_urls_as_links")) {
+
+		buffy = linkify_text(buf);
+	}
 	else
 		buffy = g_strdup(buf);