diff src/protocols/jabber/message.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 12d093e3a580
children fcde3faa1f57
line wrap: on
line diff
--- a/src/protocols/jabber/message.c	Thu Nov 24 20:38:24 2005 +0000
+++ b/src/protocols/jabber/message.c	Thu Nov 24 20:47:46 2005 +0000
@@ -188,7 +188,7 @@
 	if(jm->xhtml || jm->body) {
 		if(jid->resource)
 			serv_got_chat_in(jm->js->gc, chat->id, jid->resource,
-							jm->delayed ? GAIM_CONV_CHAT_DELAYED : 0,
+							jm->delayed ? GAIM_MESSAGE_DELAYED : 0,
 							jm->xhtml ? jm->xhtml : jm->body, jm->sent);
 		else if(chat->muc)
 			gaim_conv_chat_write(GAIM_CONV_CHAT(chat->conv), "",
@@ -444,7 +444,7 @@
 }
 
 int jabber_message_send_im(GaimConnection *gc, const char *who, const char *msg,
-		GaimConvImFlags flags)
+		GaimMessageFlags flags)
 {
 	JabberMessage *jm;
 	JabberBuddy *jb;
@@ -486,7 +486,7 @@
 	return 1;
 }
 
-int jabber_message_send_chat(GaimConnection *gc, int id, const char *msg)
+int jabber_message_send_chat(GaimConnection *gc, int id, const char *msg, GaimMessageFlags flags)
 {
 	JabberChat *chat;
 	JabberMessage *jm;