ref: c0aa29099d9d1e09c812c2438868ec2091c81ec7
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