Skip to content

Commit

Permalink
make auto accept check for object validity
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Oct 30, 2024
1 parent ac54d5c commit 0ec4d59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/transfer_auto_accept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ void TransferAutoAccept::iterate(void) {
}

void TransferAutoAccept::checkObj(ObjectHandle o) {
if (!o) {
return; // invalid object
}

if (o.all_of<ObjComp::Ephemeral::File::ActionTransferAccept>()) {
return; // already accepted
}
Expand Down

0 comments on commit 0ec4d59

Please sign in to comment.