From ff4a64aba5347b9735b80d9f3f9cca2dea9cb4c0 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 20 Jun 2008 22:05:37 +0000 Subject: [PATCH] call new versions of Azureus Vuze --- libtransmission/clients.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index c79d32601..76e86a0e1 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -173,7 +173,15 @@ tr_clientForId( char * buf, size_t buflen, const void * id_in ) snprintf( buf, buflen, "Transmission %d.%02d%s", strint(id+3,1), strint(id+4,2), id[6]=='Z' || id[6]=='X' ? "+" : "" ); } - + + else if( !memcmp( id+1, "AZ", 2 ) ) + { + if( id[3] > '3' || ( id[3] == '3' && id[4] >= '1' ) ) /* Vuze starts at version 3.1.0.0 */ + four_digits( buf, buflen, "Vuze", id+3 ); + else + four_digits( buf, buflen, "Azureus", id+3 ); + } + else if( !memcmp( id+1, "KT", 2 ) ) { if( id[5] == 'D' ) @@ -187,7 +195,6 @@ tr_clientForId( char * buf, size_t buflen, const void * id_in ) else if( !memcmp( id+1, "AR", 2 ) ) four_digits( buf, buflen, "Ares", id+3 ); else if( !memcmp( id+1, "AT", 2 ) ) four_digits( buf, buflen, "Artemis", id+3 ); else if( !memcmp( id+1, "AV", 2 ) ) four_digits( buf, buflen, "Avicora", id+3 ); - else if( !memcmp( id+1, "AZ", 2 ) ) four_digits( buf, buflen, "Azureus", id+3 ); else if( !memcmp( id+1, "BG", 2 ) ) four_digits( buf, buflen, "BTGetit", id+3 ); else if( !memcmp( id+1, "BM", 2 ) ) four_digits( buf, buflen, "BitMagnet", id+3 ); else if( !memcmp( id+1, "BX", 2 ) ) four_digits( buf, buflen, "BittorrentX", id+3 );