comparison src/server.c @ 8882:25344c2d74c4

[gaim-migrate @ 9651] Eradicate "Show URLs as links" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 06 May 2004 04:58:49 +0000
parents b8c0a53b3022
children dd6b4f259f5b
comparison
equal deleted inserted replaced
8881:1ab2a9c17f4a 8882:25344c2d74c4
883 } 883 }
884 name = angel; 884 name = angel;
885 885
886 message = buffy; 886 message = buffy;
887 887
888 /* 888 /* Make sure URLs are clickable */
889 * If you can't figure this out, stop reading right now. 889 buffy = gaim_markup_linkify(message);
890 * "We're not worthy! We're not worthy!" 890 g_free(message);
891 */ 891 message = buffy;
892 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links")) {
893 buffy = gaim_markup_linkify(message);
894 g_free(message);
895 message = buffy;
896 }
897 892
898 /* 893 /*
899 * Um. When we call gaim_conversation_write with the message we received, 894 * Um. When we call gaim_conversation_write with the message we received,
900 * it's nice to pass whether or not it was an auto-response. So if it 895 * it's nice to pass whether or not it was an auto-response. So if it
901 * was an auto-response, we set the appropriate flag. This is just so 896 * was an auto-response, we set the appropriate flag. This is just so
1553 return; 1548 return;
1554 } 1549 }
1555 who = angel; 1550 who = angel;
1556 message = buffy; 1551 message = buffy;
1557 1552
1558 1553 /* Make sure URLs are clickable */
1559 1554 buf = gaim_markup_linkify(message);
1560 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links"))
1561 buf = gaim_markup_linkify(message);
1562 else
1563 buf = g_strdup(message);
1564 1555
1565 if (whisper) 1556 if (whisper)
1566 w = GAIM_MESSAGE_WHISPER; 1557 w = GAIM_MESSAGE_WHISPER;
1567 else 1558 else
1568 w = 0; 1559 w = 0;