Adium

Changeset 18361

Show
Ignore:
Timestamp:
12/07/2006 11:55:41 AM (2 years ago)
Author:
evands
Message:

prpls are happy to tell us in a protocol-specific, contact-specific manner whether a given contact can receive a file transfer or not. Let's actually use that information, eh?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Plugins/Gaim Service/CBGaimAccount.m

    r18155 r18361  
    773773- (BOOL)allowFileTransferWithListObject:(AIListObject *)inListObject 
    774774{ 
    775         return YES; 
     775        GaimPluginProtocolInfo *prpl_info = NULL; 
     776 
     777        if (account && account->gc && account->gc->prpl) 
     778                prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(account->gc->prpl); 
     779         
     780        if (prpl_info && prpl_info->send_file) 
     781                return (!prpl_info->can_receive_file || prpl_info->can_receive_file(account->gc, [[inListObject UID] UTF8String])); 
     782        else 
     783                return NO; 
    776784} 
    777785 
  • trunk/Plugins/Gaim Service/ESGaimJabberAccount.m

    r17857 r18361  
    419419} 
    420420 
    421 /*! 
    422  * @brief Allow a file transfer with an object? 
    423  * 
    424  */ 
    425 - (BOOL)allowFileTransferWithListObject:(AIListObject *)inListObject 
    426 { 
    427         return YES; //this is broken. Not all jabber servers support it, but I don't know how to check if they do. Smack will fix. 
    428 } 
    429  
    430  
    431421#pragma mark Status Messages 
    432422- (NSAttributedString *)statusMessageForGaimBuddy:(GaimBuddy *)b