diff options
author | Andrew Resch <andrewresch@gmail.com> | 2008-11-26 09:14:19 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2008-11-26 09:14:19 +0000 |
commit | 8a2d110ef6955fc0b3b99a3272cd7cffe99cee11 (patch) | |
tree | 89ffbef33ab52905654f344fd23c6d40ae039182 | |
parent | eefa2f49a0a9f8c2e329ac79492464cc8bb16192 (diff) | |
download | deluge-8a2d110ef6955fc0b3b99a3272cd7cffe99cee11.tar.gz deluge-8a2d110ef6955fc0b3b99a3272cd7cffe99cee11.tar.bz2 deluge-8a2d110ef6955fc0b3b99a3272cd7cffe99cee11.zip |
lt sync 2987
-rw-r--r-- | libtorrent/src/ut_metadata.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libtorrent/src/ut_metadata.cpp b/libtorrent/src/ut_metadata.cpp index 848c3795d..d8416e14b 100644 --- a/libtorrent/src/ut_metadata.cpp +++ b/libtorrent/src/ut_metadata.cpp @@ -451,6 +451,8 @@ namespace libtorrent boost::shared_ptr<torrent_plugin> create_ut_metadata_plugin(torrent* t, void*) { + // don't add this extension if the torrent is private + if (t->valid_metadata() && t->torrent_file().priv()) return boost::shared_ptr<torrent_plugin>(); return boost::shared_ptr<torrent_plugin>(new ut_metadata_plugin(*t)); } |