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