ProphDKP_duplicatebid is likely a global, so after the first time you set it to 1, it just stays equal to 1.
What you're looking for is something as short as:
Code:
if not ProphDKP_bidders[arg2] then
ProphDKP_bidders[arg2] = 1
else
-- this is clearly a duplicate bid.
end