• Aars CODE

    From Finnigann@VERT to All on Sat Aug 16 13:30:00 2003
    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.



    旼컴컴컴컴컴컴컴컴컴컴컴컫컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴커
    쿕ames King KC8UGV ftp://bnb.dtdns.net/TV-NET.ZIP
    쿞ysop Bits-N-Bytes BBS Get TV-NET here! Honk!
    쿎oldwater, 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
  • From Finnigann@VERT to Finnigann on Sun Aug 17 11:11:00 2003

    !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.


    I have come up with THIS incarnation:

    ################################# Begins Here #################################

    !include sbbsdefs.inc

    #
    # Makes sure the 1z flag is in the OFF (not set possition)
    # COMPARE_ARS F1Z
    # IF_TRUE
    # TOGGLE_USER_FLAG F1Z
    #

    # Checks to see what time it is and set 1z flag is between the hours
    # of 10:00 PM and 06:30 AM
    # COMPARE_ARS TIME NOT 22:00 OR 06:30
    # IF_TRUE
    # TOGGLE_USER_FLAG 1Z
    # print "Do to the lateness of the hour, "
    # print "some games will not be availible to you"
    #


    Comments?

    hc----------------------------------------------------------

    ... Computer Hacker wanted. Must have own axe.

    ---
    Synchronet Bits-N-Bytes BBS One Hellofa BBS telnet://bnb.dtdns.net
  • From Digital Man@VERT to Finnigann on Mon Aug 18 13:39:17 2003
    Re: Aars CODE
    By: Finnigann to Finnigann on Sun Aug 17 2003 11:11 am

    # Checks to see what time it is and set 1z flag is between the hours
    # of 10:00 PM and 06:30 AM
    # COMPARE_ARS TIME NOT 22:00 OR 06:30
    # IF_TRUE
    # TOGGLE_USER_FLAG 1Z
    # print "Do to the lateness of the hour, "
    # print "some games will not be availible to you"
    #


    Comments?


    All the code is commented out?

    In addition to the problem of toggling the flag without first checking to see if its set or not.

    digital man

    Snapple "Real Fact" #43:
    A cat's lower jaw cannot move sideways.
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net