From 3409f51ef0779101e883b3c6deea1d57b6989615 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 15 Dec 2006 05:27:51 +0000 Subject: [PATCH] should identify BitLord clients according to the bittorrent specs (although it might not be completely accurate) --- libtransmission/clients.c | 2 +- macosx/Controller.m | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index d46c15237..dc0d96bc1 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -127,7 +127,7 @@ char * tr_clientForId( uint8_t * id ) } else if( !memcmp( id, "exbc", 4 ) ) { - asprintf( &ret, "BitComet %d.%02d", id[4], id[5] ); + asprintf( &ret, "%s %d.%02d", !memcmp( &id[6], "LORD", 4 ) ? "BitLord" : "BitComet", id[4], id[5] ); } else if( !memcmp( id, "OP", 2 ) ) { diff --git a/macosx/Controller.m b/macosx/Controller.m index 9fccaa1b6..b64bafe20 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -101,8 +101,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy exit(0); } } - - + [[NSUserDefaults standardUserDefaults] registerDefaults: [NSDictionary dictionaryWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"Defaults" ofType: @"plist"]]];