Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
19510:b17bd24fca8d | 19511:ea26d30449fd |
---|---|
110 | 110 |
111 type = purple_conversation_get_type(conv); | 111 type = purple_conversation_get_type(conv); |
112 | 112 |
113 /* Always linkfy the text for display, unless we're | 113 /* Always linkfy the text for display, unless we're |
114 * explicitly asked to do otheriwse*/ | 114 * explicitly asked to do otheriwse*/ |
115 if(msgflags & PURPLE_MESSAGE_NO_LINKIFY) | 115 if (!(msgflags & PURPLE_MESSAGE_INVISIBLE)) { |
116 displayed = g_strdup(message); | 116 if(msgflags & PURPLE_MESSAGE_NO_LINKIFY) |
117 else | 117 displayed = g_strdup(message); |
118 displayed = purple_markup_linkify(message); | 118 else |
119 | 119 displayed = purple_markup_linkify(message); |
120 if ((conv->features & PURPLE_CONNECTION_HTML) && | 120 } |
121 !(msgflags & PURPLE_MESSAGE_RAW)) | 121 |
122 { | 122 if (displayed && (conv->features & PURPLE_CONNECTION_HTML) && |
123 !(msgflags & PURPLE_MESSAGE_RAW)) { | |
123 sent = g_strdup(displayed); | 124 sent = g_strdup(displayed); |
124 } | 125 } else |
125 else | |
126 sent = g_strdup(message); | 126 sent = g_strdup(message); |
127 | 127 |
128 msgflags |= PURPLE_MESSAGE_SEND; | 128 msgflags |= PURPLE_MESSAGE_SEND; |
129 | 129 |
130 if (type == PURPLE_CONV_TYPE_IM) { | 130 if (type == PURPLE_CONV_TYPE_IM) { |