Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 19511:ea26d30449fd
Add a new flag PURPLE_MESSAGE_INVISIBLE which can be used to send a message
in a conversation, but without displaying it in the conversation window.
Use this new flag from Yahoo! when sending a buzz.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 28 Aug 2007 08:58:36 +0000 |
parents | 4da3c8618c24 |
children | e918e38a56b0 ee5551542eee |
line wrap: on
line diff
--- a/libpurple/conversation.c Tue Aug 28 08:53:48 2007 +0000 +++ b/libpurple/conversation.c Tue Aug 28 08:58:36 2007 +0000 @@ -112,17 +112,17 @@ /* 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)) - { + if (!(msgflags & PURPLE_MESSAGE_INVISIBLE)) { + if(msgflags & PURPLE_MESSAGE_NO_LINKIFY) + displayed = g_strdup(message); + else + displayed = purple_markup_linkify(message); + } + + if (displayed && (conv->features & PURPLE_CONNECTION_HTML) && + !(msgflags & PURPLE_MESSAGE_RAW)) { sent = g_strdup(displayed); - } - else + } else sent = g_strdup(message); msgflags |= PURPLE_MESSAGE_SEND;