Mercurial > pidgin
comparison libpurple/protocols/mxit/filexfer.c @ 32357:930820b18a8d
MXit is increasing the limit on the size of files that can be transferred.
author | andrew.victor@mxit.com |
---|---|
date | Wed, 02 Nov 2011 09:51:48 +0000 |
parents | 280ef1bd125b |
children | f07501af8bae |
comparison
equal
deleted
inserted
replaced
32351:03efb97b552b | 32357:930820b18a8d |
---|---|
122 purple_debug_info( MXIT_PLUGIN_ID, "mxit_xfer_init\n" ); | 122 purple_debug_info( MXIT_PLUGIN_ID, "mxit_xfer_init\n" ); |
123 | 123 |
124 if ( purple_xfer_get_type( xfer ) == PURPLE_XFER_SEND ) { | 124 if ( purple_xfer_get_type( xfer ) == PURPLE_XFER_SEND ) { |
125 /* we are trying to send a file to MXit */ | 125 /* we are trying to send a file to MXit */ |
126 | 126 |
127 if ( purple_xfer_get_size( xfer ) > CP_MAX_FILESIZE ) { | 127 if ( purple_xfer_get_size( xfer ) > ( CP_MAX_PACKET - 1000 ) ) { /* need to reserve some space for packet headers */ |
128 /* the file is too big */ | 128 /* the file is too big */ |
129 purple_xfer_error( purple_xfer_get_type( xfer ), purple_xfer_get_account( xfer ), purple_xfer_get_remote_user( xfer ), _( "The file you are trying to send is too large!" ) ); | 129 purple_xfer_error( purple_xfer_get_type( xfer ), purple_xfer_get_account( xfer ), purple_xfer_get_remote_user( xfer ), _( "The file you are trying to send is too large!" ) ); |
130 purple_xfer_cancel_local( xfer ); | 130 purple_xfer_cancel_local( xfer ); |
131 return; | 131 return; |
132 } | 132 } |