| 856 purple_chat_conversation_get_nick(to), purple_chat_conversation_get_nick(from), room, message); |
856 purple_chat_conversation_get_nick(to), purple_chat_conversation_get_nick(from), room, message); |
| 857 purple_serv_got_chat_in(to_gc, id, purple_chat_conversation_get_nick(from), PURPLE_MESSAGE_RECV, message, |
857 purple_serv_got_chat_in(to_gc, id, purple_chat_conversation_get_nick(from), PURPLE_MESSAGE_RECV, message, |
| 858 time(NULL)); |
858 time(NULL)); |
| 859 } |
859 } |
| 860 |
860 |
| 861 static int nullprpl_chat_send(PurpleConnection *gc, int id, const char *message, |
861 static int nullprpl_chat_send(PurpleConnection *gc, int id, PurpleMessage *msg) { |
| 862 PurpleMessageFlags flags) { |
|
| 863 const char *username = purple_account_get_username(purple_connection_get_account(gc)); |
862 const char *username = purple_account_get_username(purple_connection_get_account(gc)); |
| 864 PurpleChatConversation *chat = purple_conversations_find_chat(gc, id); |
863 PurpleChatConversation *chat = purple_conversations_find_chat(gc, id); |
| |
864 const gchar *message = purple_message_get_contents(msg); |
| 865 |
865 |
| 866 if (chat) { |
866 if (chat) { |
| 867 purple_debug_info("nullprpl", |
867 purple_debug_info("nullprpl", |
| 868 "%s is sending message to chat room %s: %s\n", username, |
868 "%s is sending message to chat room %s: %s\n", username, |
| 869 purple_conversation_get_name(PURPLE_CONVERSATION(chat)), message); |
869 purple_conversation_get_name(PURPLE_CONVERSATION(chat)), message); |