finch/gntpounce.c

changeset 36089
c035b9a63457
parent 36076
a0e5b68ff4ef
child 36098
4951752ad038
equal deleted inserted replaced
36088:4c386387f6f3 36089:c035b9a63457
873 im = purple_conversations_find_im_with_account(pouncee, account); 873 im = purple_conversations_find_im_with_account(pouncee, account);
874 874
875 if (im == NULL) 875 if (im == NULL)
876 im = purple_im_conversation_new(account, pouncee); 876 im = purple_im_conversation_new(account, pouncee);
877 877
878 pmsg = purple_message_new(pouncee, message, 0); 878 pmsg = purple_message_new(pouncee, message, PURPLE_MESSAGE_SEND);
879
880 purple_conversation_write(PURPLE_CONVERSATION(im), NULL, message,
881 PURPLE_MESSAGE_SEND, time(NULL));
882
883 purple_serv_send_im(purple_account_get_connection(account), pmsg); 879 purple_serv_send_im(purple_account_get_connection(account), pmsg);
880 purple_conversation_write_message(PURPLE_CONVERSATION(im), pmsg);
884 } 881 }
885 } 882 }
886 883
887 if (purple_pounce_action_is_enabled(pounce, "execute-command")) 884 if (purple_pounce_action_is_enabled(pounce, "execute-command"))
888 { 885 {

mercurial