* Enabled 'max_downloads_div' by default.

* Added 'get_{client,library}_version' commands.

* Removed support for appending more than one command to 'schedule'.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@949 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-03 11:56:18 +00:00
parent ba634e7d62
commit 37bc4c85c4
8 changed files with 37 additions and 59 deletions
+4 -3
View File
@@ -183,16 +183,17 @@ torrent::Object
apply_schedule(const torrent::Object& rawArgs) {
const torrent::Object::list_type& args = rawArgs.as_list();
if (args.size() < 4)
throw torrent::input_error("Too few arguments.");
if (args.size() != 4)
throw torrent::input_error("Wrong number of arguments.");
torrent::Object::list_type::const_iterator itr = args.begin();
const std::string& arg1 = (itr++)->as_string();
const std::string& arg2 = (itr++)->as_string();
const std::string& arg3 = (itr++)->as_string();
const std::string& arg4 = (itr++)->as_string();
control->command_scheduler()->parse(arg1, arg2, arg3, rpc::convert_list_to_command(itr, args.end()));
control->command_scheduler()->parse(arg1, arg2, arg3, arg4);
return torrent::Object();
}