# bbs/unban - unban a user (sysop only)
# usage: unban cga

bbs=/n/bbs

if (test ! -d $bbs) {
    echo 'BBS not connected. Run: bbs/connect'
    exit 1
}

if (test $#* -eq 0) {
    echo 'usage: unban cga'
    exit 1
}

rm $bbs/admin/bans/$1
echo 'Unbanned:' $1
