Mercurial > pidgin.yaz
diff libpurple/protocols/bonjour/bonjour.c @ 23172:388e96b79206
propagate from branch 'im.pidgin.pidgin.next.minor' (head 71320664d16c85cf4292830959527b4509e2182b)
to branch 'im.pidgin.pidgin' (head 75ea267822832fccf8671b593d79999e32b6c694)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 23 May 2008 16:47:59 +0000 |
parents | 25161f5ea347 2a81912c229a |
children | e0bcb8cfda74 |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c Fri May 23 02:23:07 2008 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Fri May 23 16:47:59 2008 +0000 @@ -413,6 +413,15 @@ } static gboolean +bonjour_can_receive_file(PurpleConnection *connection, const char *who) +{ + PurpleBuddy *buddy = purple_find_buddy(connection->account, who); + + return (buddy != NULL && buddy->proto_data != NULL); + +} + +static gboolean plugin_unload(PurplePlugin *plugin) { /* These shouldn't happen here because they are allocated in _init() */ @@ -483,7 +492,7 @@ NULL, /* roomlist_get_list */ NULL, /* roomlist_cancel */ NULL, /* roomlist_expand_category */ - NULL, /* can_receive_file */ + bonjour_can_receive_file, /* can_receive_file */ bonjour_send_file, /* send_file */ bonjour_new_xfer, /* new_xfer */ NULL, /* offline_message */