# @(#) af 3.0 22jan94 Morgan_Davis @(#)

if "$argv[1]" = "-o" then
    set file=$/games/lib/fortunes2
else
    set file=$/games/lib/fortunes
endif
echo -n "Enter the complete fortune, then press RETURN^M>"
read fortune
if "$fortune" > "" then
    if $gid > 0 then
        echo "Submitting your fortune for review..."
        echo $fortune >>~/af.tmp
        rcp -a ~/af.tmp root -s "Fortune submission"
        rm ~/af.tmp
    else        
        echo -n "Adding new fortune..."
        echo $fortune >>$file
    endif
    echo "Done!"
endif
