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