Mercurial > pidgin
changeset 23152:caa533b62902
When calling serv_got_chat_in() after sending a group chat message (to let
the core know that it was sent, since unlike sending an IM conversation
message it is not immedately written out to the conversation by
common_send()), pass back the flags initially sent to the prpl. This maintains
the PURPLE_MESSAGE_SEND flag as well as anything else which might be
helpful to the UI, such as PURPLE_MESSAGE_IMAGES.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Wed, 14 May 2008 23:36:37 +0000 |
parents | f26f6a854770 |
children | b17d6defb922 |
files | libpurple/protocols/gg/gg.c libpurple/protocols/irc/irc.c libpurple/protocols/msn/msn.c libpurple/protocols/msnp9/msn.c libpurple/protocols/novell/novell.c libpurple/protocols/silc/chat.c libpurple/protocols/silc10/chat.c libpurple/protocols/yahoo/yahoochat.c |
diffstat | 8 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/gg/gg.c Wed May 14 23:36:37 2008 +0000 @@ -1998,7 +1998,7 @@ serv_got_chat_in(gc, id, purple_account_get_username(purple_connection_get_account(gc)), - 0, message, time(NULL)); + flags, message, time(NULL)); return 0; }
--- a/libpurple/protocols/irc/irc.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/irc/irc.c Wed May 14 23:36:37 2008 +0000 @@ -733,7 +733,7 @@ irc_cmd_privmsg(irc, "msg", NULL, args); - serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), 0, what, time(NULL)); + serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), flags, what, time(NULL)); g_free(tmp); return 0; }
--- a/libpurple/protocols/msn/msn.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/msn/msn.c Wed May 14 23:36:37 2008 +0000 @@ -1551,7 +1551,7 @@ g_free(msgformat); g_free(msgtext); - serv_got_chat_in(gc, id, purple_account_get_username(account), 0, + serv_got_chat_in(gc, id, purple_account_get_username(account), flags, message, time(NULL)); return 0;
--- a/libpurple/protocols/msnp9/msn.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/msnp9/msn.c Wed May 14 23:36:37 2008 +0000 @@ -1392,7 +1392,7 @@ g_free(msgformat); g_free(msgtext); - serv_got_chat_in(gc, id, purple_account_get_username(account), 0, + serv_got_chat_in(gc, id, purple_account_get_username(account), flags, message, time(NULL)); return 0;
--- a/libpurple/protocols/novell/novell.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/novell/novell.c Wed May 14 23:36:37 2008 +0000 @@ -2506,7 +2506,7 @@ } } - serv_got_chat_in(gc, id, name, 0, text, time(NULL)); + serv_got_chat_in(gc, id, name, flags, text, time(NULL)); return 0; } else return -1;
--- a/libpurple/protocols/silc/chat.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/silc/chat.c Wed May 14 23:36:37 2008 +0000 @@ -1315,7 +1315,7 @@ g_free(tmp); if (ret) - serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), 0, msg, time(NULL)); + serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), msgflags, msg, time(NULL)); return ret; } } @@ -1326,7 +1326,7 @@ (unsigned char *)msg2, strlen(msg2)); if (ret) { - serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), 0, msg, + serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), msgflags, msg, time(NULL)); } g_free(tmp);
--- a/libpurple/protocols/silc10/chat.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/silc10/chat.c Wed May 14 23:36:37 2008 +0000 @@ -1351,7 +1351,7 @@ flags, (unsigned char *)msg2, strlen(msg2), TRUE); if (ret) { - serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), 0, msg, + serv_got_chat_in(gc, id, purple_connection_get_display_name(gc), msgflags, msg, time(NULL)); } g_free(tmp);
--- a/libpurple/protocols/yahoo/yahoochat.c Tue May 13 06:04:27 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoochat.c Wed May 14 23:36:37 2008 +0000 @@ -1043,7 +1043,7 @@ purple_conversation_get_name(c), what, flags); if (!ret) serv_got_chat_in(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(c)), - purple_connection_get_display_name(gc), 0, what, time(NULL)); + purple_connection_get_display_name(gc), flags, what, time(NULL)); } return ret; }