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

added Tribler to clients

This commit is contained in:
Mitchell Livingston 2007-02-14 16:21:59 +00:00
parent 841e7dbf64
commit 62bbab9ab5

View file

@ -156,7 +156,7 @@ char * tr_clientForId( uint8_t * id )
}
/* Tornado-style */
if( !memcmp( &id[4], "-----", 5 ) || !memcmp( &id[4], "--0", 3 ) )
if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--0", 3 ) )
{
if( id[0] == 'T' )
{
@ -168,6 +168,10 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "ABC %d.%d.%d", charToInt( id[1] ),
charToInt( id[2] ), charToInt( id[3] ) );
}
else if( id[0] == 'R' )
{
asprintf( &ret, "Tribler %c.%c", id[1], id[2] );
}
if( ret )
{