diff --git a/plugins/transfer_auto_accept.cpp b/plugins/transfer_auto_accept.cpp index e471da0..aa60a78 100644 --- a/plugins/transfer_auto_accept.cpp +++ b/plugins/transfer_auto_accept.cpp @@ -74,7 +74,7 @@ void TransferAutoAccept::checkObj(ObjectHandle o) { // dont touch avatars for now // TODO: more generic file types?? - if (const auto* fk = o.try_get(); fk != nullptr && fk->kind != 0) { + if (const auto* fk = o.try_get(); fk != nullptr && (fk->kind != 0 && fk->kind != 2 && fk->kind != 3 && fk->kind != 4)) { return; } @@ -82,7 +82,7 @@ void TransferAutoAccept::checkObj(ObjectHandle o) { uint64_t total_size {0u}; if (const auto* si = o.try_get(); si != nullptr) { if (si->file_name.empty()) { - return; // bad file + return; // bad or non- file } total_size = si->file_size; if (std::filesystem::exists(std::filesystem::path(save_dir_path) / si->file_name)) {