libpurple/protocols/irc/cmds.c

changeset 36080
637a1a87c4d3
parent 36079
2e449140fe0b
child 36081
6764e037a308
equal deleted inserted replaced
36079:2e449140fe0b 36080:637a1a87c4d3
112 msg, PURPLE_MESSAGE_SEND); 112 msg, PURPLE_MESSAGE_SEND);
113 113
114 purple_signal_emit(purple_conversations_get_handle(), 114 purple_signal_emit(purple_conversations_get_handle(),
115 "sending-im-msg", irc->account, pmsg); 115 "sending-im-msg", irc->account, pmsg);
116 } else { 116 } else {
117 /* TODO: pmsg! */ 117 pmsg = purple_message_new(NULL, msg, PURPLE_MESSAGE_SEND);
118
118 purple_signal_emit(purple_conversations_get_handle(), 119 purple_signal_emit(purple_conversations_get_handle(),
119 "sending-chat-msg", irc->account, &msg, 120 "sending-chat-msg", irc->account, pmsg,
120 purple_chat_conversation_get_id(PURPLE_CHAT_CONVERSATION(convo))); 121 purple_chat_conversation_get_id(PURPLE_CHAT_CONVERSATION(convo)));
121 } 122 }
122 123
123 g_free(msg); 124 g_free(msg);
124 if (purple_message_is_empty(pmsg)) 125 if (purple_message_is_empty(pmsg))

mercurial