ctorrent client id

This commit is contained in:
Mitchell Livingston 2006-12-17 21:15:33 +00:00
parent 38b97ccf13
commit 4b44da5a8c
1 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,12 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "Electric Sheep %c.%c.%c",
id[3], id[4], id[5] );
}
else if( !memcmp( &id[1], "CD", 2 ) )
{
asprintf( &ret, "CTorrent %d.%d",
charToInt( id[3] ) * 10 + charToInt( id[4] ),
charToInt( id[5] ) * 10 + charToInt( id[6] ) );
}
}
else if( !memcmp( &id[4], "----", 4 ) || !memcmp( &id[4], "--00", 4 ) )
{