| 805 g_snprintf(buf2, sizeof(buf2), |
805 g_snprintf(buf2, sizeof(buf2), |
| 806 _("%s has invited %s to the chat room %s\n"), |
806 _("%s has invited %s to the chat room %s\n"), |
| 807 who, purple_account_get_username(account), name); |
807 who, purple_account_get_username(account), name); |
| 808 |
808 |
| 809 |
809 |
| 810 purple_request_accept_cancel(gc, NULL, _("Accept chat invitation?"), buf2, |
810 purple_request_accept_cancel(gc, NULL, |
| 811 PURPLE_DEFAULT_ACTION_NONE, account, who, NULL, |
811 _("Accept chat invitation?"), buf2, |
| 812 cid, G_CALLBACK(chat_invite_accept), |
812 PURPLE_DEFAULT_ACTION_NONE, |
| 813 G_CALLBACK(chat_invite_reject)); |
813 purple_request_cpar_from_connection(gc), cid, |
| |
814 G_CALLBACK(chat_invite_accept), |
| |
815 G_CALLBACK(chat_invite_reject)); |
| 814 } |
816 } |
| 815 else if (plugin_return > 0) |
817 else if (plugin_return > 0) |
| 816 chat_invite_accept(cid); |
818 chat_invite_accept(cid); |
| 817 else |
819 else |
| 818 chat_invite_reject(cid); |
820 chat_invite_reject(cid); |