pidgin/gtkpounce.c

changeset 36076
a0e5b68ff4ef
parent 35721
abae078d0525
child 36089
c035b9a63457
equal deleted inserted replaced
36075:dfb5988e053b 36076:a0e5b68ff4ef
1478 message = purple_pounce_action_get_attribute(pounce, "send-message", 1478 message = purple_pounce_action_get_attribute(pounce, "send-message",
1479 "message"); 1479 "message");
1480 1480
1481 if (message != NULL) 1481 if (message != NULL)
1482 { 1482 {
1483 PurpleMessage *pmsg;
1484
1483 im = purple_conversations_find_im_with_account(pouncee, account); 1485 im = purple_conversations_find_im_with_account(pouncee, account);
1484 1486
1485 if (im == NULL) 1487 if (im == NULL)
1486 im = purple_im_conversation_new(account, pouncee); 1488 im = purple_im_conversation_new(account, pouncee);
1487 1489
1490 pmsg = purple_message_new(pouncee, message, 0);
1491
1488 purple_conversation_write(PURPLE_CONVERSATION(im), NULL, message, 1492 purple_conversation_write(PURPLE_CONVERSATION(im), NULL, message,
1489 PURPLE_MESSAGE_SEND, time(NULL)); 1493 PURPLE_MESSAGE_SEND, time(NULL));
1490 1494
1491 purple_serv_send_im(purple_account_get_connection(account), (char *)pouncee, (char *)message, 0); 1495 purple_serv_send_im(purple_account_get_connection(account), pmsg);
1492 } 1496 }
1493 } 1497 }
1494 1498
1495 if (purple_pounce_action_is_enabled(pounce, "execute-command")) 1499 if (purple_pounce_action_is_enabled(pounce, "execute-command"))
1496 { 1500 {

mercurial