1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

add Deluge and another Shareaza format to clients

This commit is contained in:
Mitchell Livingston 2007-01-31 02:08:32 +00:00
parent 6ab640c50b
commit 4871222fa5

View file

@ -71,7 +71,7 @@ char * tr_clientForId( uint8_t * id )
charToInt( id[3] ) * 10 + charToInt( id[4] ), charToInt( id[3] ) * 10 + charToInt( id[4] ),
id[5], id[6] ); id[5], id[6] );
} }
else if( !memcmp( &id[1], "SZ", 2 ) ) else if( !memcmp( &id[1], "SZ", 2 ) || !memcmp( &id[1], "S~", 2 ) )
{ {
asprintf( &ret, "Shareaza %c.%c.%c.%c", asprintf( &ret, "Shareaza %c.%c.%c.%c",
id[3], id[4], id[5], id[6] ); id[3], id[4], id[5], id[6] );
@ -132,6 +132,12 @@ char * tr_clientForId( uint8_t * id )
charToInt( id[3] ) * 10 + charToInt( id[4] ), charToInt( id[3] ) * 10 + charToInt( id[4] ),
id[5], id[6] ); id[5], id[6] );
} }
else if( !memcmp( &id[1], "DE", 2 ) )
{
asprintf( &ret, "Deluge %d.%d.%d",
charToInt( id[3] ), charToInt( id[4] ),
charToInt( id[5] ) );
}
else if( !memcmp( &id[1], "AR", 2 ) ) else if( !memcmp( &id[1], "AR", 2 ) )
{ {
asprintf( &ret, "Arctic Torrent" ); asprintf( &ret, "Arctic Torrent" );