JVTorrent client id

This commit is contained in:
Mitchell Livingston 2006-12-19 16:30:34 +00:00
parent 3d787a7e77
commit 9c87aad53c
1 changed files with 7 additions and 1 deletions

View File

@ -121,7 +121,7 @@ char * tr_clientForId( uint8_t * id )
}
}
/* Different formatting per client */
/* Tornado-style */
if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--00", 4 ) )
{
if( id[0] == 'T' )
@ -140,6 +140,8 @@ char * tr_clientForId( uint8_t * id )
return ret;
}
}
/* Different formatting per client */
if( id[0] == 'M' && id[2] == '-' && id[7] == '-' )
{
if( id[4] == '-' && id[6] == '-' )
@ -202,6 +204,10 @@ char * tr_clientForId( uint8_t * id )
{
asprintf( &ret, "G3 Torrent" );
}
else if( !memcmp( id, "10-------", 9 ) )
{
asprintf( &ret, "JVtorrent" );
}
/* No match */
if( !ret )