Mercurial > pidgin
comparison libgaim/protocols/qq/send_file.c @ 14740:a169177ffa4e
[gaim-migrate @ 17496]
Better error messages, in my opinion. Now we don't need
to worry about defuzzing anything...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 17 Oct 2006 14:16:46 +0000 |
parents | acd886ea473e |
children | dfd272ab67e7 |
comparison
equal
deleted
inserted
replaced
14739:63d5b71d0c68 | 14740:a169177ffa4e |
---|---|
701 gaim_debug (GAIM_DEBUG_WARNING, "QQ", | 701 gaim_debug (GAIM_DEBUG_WARNING, "QQ", |
702 "Received file reject message is empty\n"); | 702 "Received file reject message is empty\n"); |
703 return; | 703 return; |
704 } | 704 } |
705 filename = strrchr(gaim_xfer_get_local_filename(qd->xfer), '/') + 1; | 705 filename = strrchr(gaim_xfer_get_local_filename(qd->xfer), '/') + 1; |
706 msg = g_strdup_printf | 706 msg = g_strdup_printf(_("%d has declined the file %s"), |
707 (_ | 707 sender_uid, filename); |
708 ("Your request to send file[%s] has been rejected by buddy[%d]"), | |
709 filename, sender_uid); | |
710 | 708 |
711 gaim_notify_warning (gc, _("File Send"), msg, NULL); | 709 gaim_notify_warning (gc, _("File Send"), msg, NULL); |
712 gaim_xfer_request_denied(qd->xfer); | 710 gaim_xfer_request_denied(qd->xfer); |
713 qd->xfer = NULL; | 711 qd->xfer = NULL; |
714 | 712 |
732 "Received file reject message is empty\n"); | 730 "Received file reject message is empty\n"); |
733 return; | 731 return; |
734 } | 732 } |
735 filename = strrchr(gaim_xfer_get_local_filename(qd->xfer), '/') + 1; | 733 filename = strrchr(gaim_xfer_get_local_filename(qd->xfer), '/') + 1; |
736 msg = g_strdup_printf | 734 msg = g_strdup_printf |
737 (_("The sending process of file[%s] has been canceled by buddy[%d]"), | 735 (_("%d canceled the transfer of %s"), |
738 filename, sender_uid); | 736 sender_uid, filename); |
739 | 737 |
740 gaim_notify_warning (gc, _("File Send"), msg, NULL); | 738 gaim_notify_warning (gc, _("File Send"), msg, NULL); |
741 gaim_xfer_cancel_remote(qd->xfer); | 739 gaim_xfer_cancel_remote(qd->xfer); |
742 qd->xfer = NULL; | 740 qd->xfer = NULL; |
743 | 741 |