1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(trunk daemon) #3506 "transmission-remote --tracker-add feature not working" -- fixed.

This commit is contained in:
Charles Kerr 2010-09-22 00:01:58 +00:00
parent 51a61bc1da
commit dd84100fcc

View file

@ -2035,12 +2035,8 @@ processArgs( const char * host, int port, int argc, const char ** argv )
switch( c )
{
case 712:
{
tr_benc * trackers = tr_bencDictAddList( args, "trackerRemove", 1 );
tr_bencListAddInt( trackers, atoi(optarg) );
break;
}
case 712: tr_bencListAddInt( tr_bencDictAddList( args, "trackerRemove", 1 ), atoi( optarg ) );
break;
case 950: tr_bencDictAddReal( args, "seedRatioLimit", atof(optarg) );
tr_bencDictAddInt( args, "seedRatioMode", TR_RATIOLIMIT_SINGLE );
break;
@ -2083,12 +2079,8 @@ processArgs( const char * host, int port, int argc, const char ** argv )
break;
case 702: tr_bencDictAddInt( args, "bandwidthPriority", -1 );
break;
case 710:
{
tr_benc * trackers = tr_bencDictAddDict( args, "trackerAdd", 1 );
tr_bencDictAddStr( trackers, "announce", optarg );
break;
}
case 710: tr_bencListAddStr( tr_bencDictAddList( args, "trackerAdd", 1 ), optarg );
break;
default: assert( "unhandled value" && 0 );
break;
}