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

add queen bee to clients

This commit is contained in:
Mitchell Livingston 2006-12-16 02:27:02 +00:00
parent 9041bf4efe
commit ea9de21173

View file

@ -125,6 +125,17 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "BitTorrent %c.%c%c.%c", id[1], id[3], id[4], id[6] ); asprintf( &ret, "BitTorrent %c.%c%c.%c", id[1], id[3], id[4], id[6] );
} }
} }
else if( id[0] == 'Q' && id[2] == '-' && id[7] == '-' )
{
if( id[4] == '-' && id[6] == '-' )
{
asprintf( &ret, "Queen Bee %c.%c.%c", id[1], id[3], id[5] );
}
else if( id[5] == '-' )
{
asprintf( &ret, "Queen Bee %c.%c%c.%c", id[1], id[3], id[4], id[6] );
}
}
else if( !memcmp( id, "exbc", 4 ) ) else if( !memcmp( id, "exbc", 4 ) )
{ {
asprintf( &ret, "%s %d.%02d", asprintf( &ret, "%s %d.%02d",