| 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)) |