comparison src/gtksound.c @ 12216:4d3119205a33

[gaim-migrate @ 14518] Remove GaimConvImFlags and GaimConvChatFlags - use GaimMessageFlags everywhere instead. Add a new GAIM_MESSAGE_IMAGES flag, and set it when sending a message containing images. When sending a message, the core will now always send "html" to the prpls, just like it expects to receive html from the prpls for received messages. This will allow text prpls such as SILC to support IM images and differentiate them from user input. Previously gaim_unescape_html() was used before passing the message to the prpl, now the prpl does this itself if it needs it. I think I updated all the prpls correctly, but I'm not so sure about sametime. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 24 Nov 2005 20:47:46 +0000
parents 941aa045f9f6
children 8c339d9f1bb4
comparison
equal deleted inserted replaced
12215:31b91bfab029 12216:4d3119205a33
193 } 193 }
194 194
195 static void 195 static void
196 chat_msg_received_cb(GaimAccount *account, char *sender, 196 chat_msg_received_cb(GaimAccount *account, char *sender,
197 char *message, GaimConversation *conv, 197 char *message, GaimConversation *conv,
198 int flags, GaimSoundEventID event) 198 GaimMessageFlags flags, GaimSoundEventID event)
199 { 199 {
200 GaimConvChat *chat; 200 GaimConvChat *chat;
201 201
202 chat = gaim_conversation_get_chat_data(conv); 202 chat = gaim_conversation_get_chat_data(conv);
203 203
205 return; 205 return;
206 206
207 if (chat_nick_matches_name(conv, sender)) 207 if (chat_nick_matches_name(conv, sender))
208 return; 208 return;
209 209
210 if (flags & GAIM_CONV_CHAT_ALERT || gaim_utf8_has_word(message, chat->nick)) 210 if (flags & GAIM_MESSAGE_NICK || gaim_utf8_has_word(message, chat->nick))
211 play_conv_event(conv, GAIM_SOUND_CHAT_NICK); 211 play_conv_event(conv, GAIM_SOUND_CHAT_NICK);
212 else 212 else
213 play_conv_event(conv, event); 213 play_conv_event(conv, event);
214 } 214 }
215 215