Skip to content

Commit

Permalink
Adds doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Slivo-fr committed Feb 26, 2020
1 parent c2e42cc commit 2237c48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/comms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function TranqRotate.OnCommReceived(prefix, data, channel, sender)
end
end

-- Checks if a given version from a given sender should be applied
function TranqRotate:isVersionEligible(version, sender)
return version > TranqRotate.syncVersion or (version == TranqRotate.syncVersion and sender < TranqRotate.syncLastSender)
end
Expand Down

0 comments on commit 2237c48

Please sign in to comment.