* ^X now passes the selected download to the command.

* Added support for writing Objects to generic char* buffers.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@927 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-07-03 00:33:18 +00:00
parent c8e74a78ad
commit a492cadf00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ CommandMap::call_command_d(key_type key, core::Download* download, const mapped_
if (itr == base_type::end())
throw torrent::input_error("Command \"" + std::string(key) + "\" does not exist.");
if (itr->second.m_downloadSlot == NULL) {
if (itr->second.m_downloadSlot == NULL || download == NULL) {
if (itr->second.m_genericSlot == NULL)
throw torrent::input_error("Command does not have a generic slot.");