Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/conversation.c Wed May 30 05:37:04 2007 +0000 +++ b/libpurple/conversation.c Fri Jun 01 00:36:00 2007 +0000 @@ -108,8 +108,12 @@ type = purple_conversation_get_type(conv); - /* Always linkfy the text for display */ - displayed = purple_markup_linkify(message); + /* Always linkfy the text for display, unless we're + * explicitly asked to do otheriwse*/ + if(msgflags & PURPLE_MESSAGE_NO_LINKIFY) + displayed = g_strdup(message); + else + displayed = purple_markup_linkify(message); if ((conv->features & PURPLE_CONNECTION_HTML) && !(msgflags & PURPLE_MESSAGE_RAW))