• Aars CODE

    From Finnigann@VERT/BNB 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.ćććć ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄæć ³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ć
  • From Finnigann@VERT/BNB 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 ž [vert/cvs/bbs].synchro.netć