Subj : Aars CODE
To   : All
From : Finnigann
Date : Sat Aug 16 2003 01:30 pm

In trying to limit some access to the BBS during late hours for some
aspects of game play (They beep on errors) DM suggested using FLAGS to
be set when ever someone logs in after normal hours and to check for
that flag for any game play. So looking up ARS in the BAJA manual (or
was it the Sysops guide to nightmares...?) I came up with this tiny bit
of baja code. It's at the top of default.src. I suppose I will need a
coounter bit to reset the flag as a logoff action... but anyway.


!include sbbsdefs.inc
#
# COMPARE_ARS F4Z
#         IF_FALSE
#               TOGGLE_USER_FLAG  F4Z
# COMPARE_ARS TIME NOT 22:00 OR 06:30
# IF_TRUE
#         TOGGLE_USER_FLAG 4Z
#

# Set return point for main menu commands (via end_cmd)
cmd_home


It also seems that the toggle back mighT get skipped if a user leaves by
disconnect.

Perhaps a test that will go either way. Toggle on if it's not too late
in the day or off if it is past curfew.

Then just make the XTRN screen disallow lines with the flag 4z, right?


Hmm flag set 1 only for screen display filtering...

Now to see if there are any unused flags in set one... sorry I was
thiking (or not) of the exemptions and restrictions flags, which are
fairly well well spoken for...

OK so it's Flag 1 that gets toggled. Hopefully my bit of code sets 1z
off and back on IF it's after curfew.

I sort of wrote this as a diary. Delete anything stupid when replying.



��������������������������������������������������������������Ŀ
�James King       KC8UGV �       ftp://bnb.dtdns.net/TV-NET.ZIP
�Sysop  Bits-N-Bytes BBS �             Get TV-NET here!   Honk!�
�Coldwater, MI     49036 � http://www.synchro.net/sbbslist.html
���������������������������������������������������������������
                      And now...
      = = = = =  The posters of DoVeNet = = = = =
       http://bnb.dtdns.net/dovenet/default.html

... TROJAN Condoms - New Shape.. NEW SHAPE??
--- MultiMail/Win32 v0.45
� Synchronet � Bits-N-Bytes BBS   One Hellofa BBS    telnet://bnb.dtdns.net