From 4871222fa54f5e0fd4bd32b83da4aa6d53b83d66 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 31 Jan 2007 02:08:32 +0000 Subject: [PATCH] add Deluge and another Shareaza format to clients --- libtransmission/clients.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index 7cf46e9bb..906e4eadb 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -71,7 +71,7 @@ char * tr_clientForId( uint8_t * id ) charToInt( id[3] ) * 10 + charToInt( id[4] ), id[5], id[6] ); } - else if( !memcmp( &id[1], "SZ", 2 ) ) + else if( !memcmp( &id[1], "SZ", 2 ) || !memcmp( &id[1], "S~", 2 ) ) { asprintf( &ret, "Shareaza %c.%c.%c.%c", id[3], id[4], id[5], id[6] ); @@ -132,6 +132,12 @@ char * tr_clientForId( uint8_t * id ) charToInt( id[3] ) * 10 + charToInt( id[4] ), id[5], id[6] ); } + else if( !memcmp( &id[1], "DE", 2 ) ) + { + asprintf( &ret, "Deluge %d.%d.%d", + charToInt( id[3] ), charToInt( id[4] ), + charToInt( id[5] ) ); + } else if( !memcmp( &id[1], "AR", 2 ) ) { asprintf( &ret, "Arctic Torrent" );