mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
improve KTorrent id a bit more
This commit is contained in:
parent
04da2af57c
commit
ccf8d753c6
1 changed files with 15 additions and 3 deletions
|
@ -94,9 +94,21 @@ char * tr_clientForId( uint8_t * id )
|
||||||
}
|
}
|
||||||
else if( !memcmp( &id[1], "KT", 2 ) )
|
else if( !memcmp( &id[1], "KT", 2 ) )
|
||||||
{
|
{
|
||||||
asprintf( &ret, "KTorrent %c.%c%s",
|
if( id[5] == 'R' )
|
||||||
id[3], id[4],
|
{
|
||||||
( id[5] == 'R' ? " RC" : ( id[5] == 'D' ? " Dev" : "") ) );
|
asprintf( &ret, "KTorrent %c.%c RC %c",
|
||||||
|
id[3], id[4], id[6] );
|
||||||
|
}
|
||||||
|
else if( id[5] == 'D' )
|
||||||
|
{
|
||||||
|
asprintf( &ret, "KTorrent %c.%c Dev",
|
||||||
|
id[3], id[4] );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
asprintf( &ret, "KTorrent %c.%c.%c",
|
||||||
|
id[3], id[4], id[5] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if( !memcmp( &id[1], "lt", 2 ) )
|
else if( !memcmp( &id[1], "lt", 2 ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue