comparison 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
comparison
equal deleted inserted replaced
5538:f7dc3f656f03 5539:de09863bd4b5
30 #include <ctype.h> 30 #include <ctype.h>
31 #include "conversation.h" 31 #include "conversation.h"
32 #include "gaim.h" 32 #include "gaim.h"
33 #include "prpl.h" 33 #include "prpl.h"
34 #include "notify.h" 34 #include "notify.h"
35 #include "prefs.h"
35 36
36 #ifdef _WIN32 37 #ifdef _WIN32
37 #include "win32dep.h" 38 #include "win32dep.h"
38 #endif 39 #endif
39 40
211 212
212 conv->send_history = g_list_prepend(first, NULL); 213 conv->send_history = g_list_prepend(first, NULL);
213 214
214 buf2 = g_malloc(limit); 215 buf2 = g_malloc(limit);
215 216
216 if (gc->flags & OPT_CONN_HTML && convo_options & OPT_CONVO_SEND_LINKS) 217 if ((gc->flags & OPT_CONN_HTML) &&
217 buffy =linkify_text(buf); 218 gaim_prefs_get_bool("/core/conversations/send_urls_as_links")) {
219
220 buffy = linkify_text(buf);
221 }
218 else 222 else
219 buffy = g_strdup(buf); 223 buffy = g_strdup(buf);
220 224
221 plugin_return = gaim_event_broadcast( 225 plugin_return = gaim_event_broadcast(
222 (type == GAIM_CONV_IM ? event_im_send : event_chat_send), 226 (type == GAIM_CONV_IM ? event_im_send : event_chat_send),