Replace old command call functions with the new one taking torrent::Objects.

This commit is contained in:
rakshasa
2012-05-04 22:33:26 +09:00
parent fb75510c0f
commit d2d09d97f8
4 changed files with 31 additions and 122 deletions
+1 -2
View File
@@ -181,9 +181,8 @@ object_storage::call_function(const torrent::raw_string& key, target_type target
switch (itr->second.flags & mask_type) {
case flag_function_type:
return command_function_call_object(itr->second.object, target, object);
case flag_multi_type:
return command_function_multi_call(itr->second.object.as_map(), target, object);
return command_function_call_object(itr->second.object, target, object);
default:
throw torrent::input_error("Key not found or wrong type.");
}