ref: b1387b2b58854f371d10d6dbcd85ac6eba802a76
dir: /bin/mkroom/
#!/bin/rc # create a room. # run from 9bbs install directory. rfork e if(grep -s -e '^'$"1'$' etc/roomlist){ echo !room already exists && exit } mkdir -p rooms/$1 && cp rooms/lobby/1 rooms/$1/ && # hope you didn't edit this file! echo $1 >>etc/roomlist && echo $1/1 >>etc/rooms && for(i in `{ls etc/users}) echo $1/1 >>$i/rooms # what if the user is logged in? for(i in `{walk rooms/$1}) chgrp none $i