comparison libpurple/conversation.c @ 18025:7790021b1270

add a PURPLE_MESSAGE_NO_LINKIFY to prevent things from getting linkified
author Nathan Walp <nwalp@pidgin.im>
date Fri, 01 Jun 2007 00:36:00 +0000
parents f2d8658b3a86
children c3d03dd25434
comparison
equal deleted inserted replaced
18024:92e27556160c 18025:7790021b1270
106 g_return_if_fail(account != NULL); 106 g_return_if_fail(account != NULL);
107 g_return_if_fail(gc != NULL); 107 g_return_if_fail(gc != NULL);
108 108
109 type = purple_conversation_get_type(conv); 109 type = purple_conversation_get_type(conv);
110 110
111 /* Always linkfy the text for display */ 111 /* Always linkfy the text for display, unless we're
112 displayed = purple_markup_linkify(message); 112 * explicitly asked to do otheriwse*/
113 if(msgflags & PURPLE_MESSAGE_NO_LINKIFY)
114 displayed = g_strdup(message);
115 else
116 displayed = purple_markup_linkify(message);
113 117
114 if ((conv->features & PURPLE_CONNECTION_HTML) && 118 if ((conv->features & PURPLE_CONNECTION_HTML) &&
115 !(msgflags & PURPLE_MESSAGE_RAW)) 119 !(msgflags & PURPLE_MESSAGE_RAW))
116 { 120 {
117 sent = g_strdup(displayed); 121 sent = g_strdup(displayed);