Change erroneous if to elif (fix dupe/flood bug?)