# Neat trick: if you arrange for a couple of cron scripts to make and 
# remove this file, you get all the "chat hours" features of the more 
# expensive BBS's ;-)

more "screens/away"
exitcode = 0 menu /osbbs/menus/main 

echo "\n$grey$Enter the reason for the chat (Enter to cancel):$yellow$ "
getstring chatreason 40
chatreason = "empty" menu /osbbs/menus/main

echo "$bgreen$\nPaging the sysop"

# 3chat4all!
set clock 0
page 
set clock 1

echo "$green$\n\n"
exitcode = 3 echo "Sorry, the sysop is already chatting with someone else.\n"
exitcode = 3 echo "He $bgreen$has$green$ received your request, so he may get back to you.\n"
exitcode = 3 getkey tmp menu /osbbs/menus/main

exitcode = 2 echo "Sorry, the sysop isn't in right now.\n"
exitcode = 2 echo "Would you like to leave him a message? (n/Y)\n"
exitcode = 2 yesno tmp 
exitcode = 2 tmp = 1 set subject chatreason set touser "walter" mailbbs 
exitcode = 2 menu /osbbs/menus/main

exitcode = 1 log "page failed!"
exitcode = 1 echo "$bred$An error occurred. Go away.\n"
exitcode = 1 getkey tmp menu /osbbs/menus/main

menu /osbbs/menus/main
