• Rules processing

    From Ben Ritchey@1:1/21 to All on Saturday, April 01, 2017 20:02:02
    Hi All,

    Rule file submissions using the RULETEXT keyword has been implemented.

    This will work as a Mod Rul submission OR simply append your rules to a Mod Upd

    submission, starting with the RULETEXT keyword between all other keywords and the Rule Text itself.

    The Rule file name (x-x.RUL) is generated from the TAG value (1st 8 characters or less) followed by ".RUL" and is automatically stored in the RULEs field.

    === Example ===

    TAG MYECHO
    TITLe This is MY Echo lol
    ... (any/all other keywords needed)
    RULETEXT

    This is my text area for my Rules file. I can do ANYTHING I want here, it is free form, line by line,
    so I can indent this line
    and add draw using the next line --------------------------------------------------------------------------
    a n d s o f o r t h :)

    -+- this marks the END of the text (optional), 3 dashes ...

    === End of Example ===


    Existing options using the RULE keyword (text entered like DESC data) will still function as before.


    I would also point out that now, to clear any field, simply include the keyword

    (always starting in column 1!) without any data after it. This also means that "blank lines" within a DESC and/or RULE block will NOT work! This will clear the field and only data AFTER the blank DESC/RULE will be retained.

    i.e. RULE line 1
    RULE
    RULE line 3

    Note that line 2 above clears the RULE field and starts over with line 3


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | (:) Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... How to attract a vegetarian? Make a noise like a wounded vegetable.
    --- GoldED+/W32-MSVC v1.1.5-b20161221 ... via Mystic BBS!
    * Origin: EList HQ - The Positronium Repository (1:1/21)
  • From mark lewis@1:3634/12.73 to Ben Ritchey on Sunday, April 02, 2017 02:15:00

    On 2017 Apr 01 20:02:02, you wrote to All:

    The Rule file name (x-x.RUL) is generated from the TAG value (1st 8 characters or less) followed by ".RUL" and is automatically stored in
    the RULEs field.

    PASCAL_LESSONS will break it... in fact, any echo with more than eight characters in the tag will break... it will be worse if there are two or more with the same first eight characters (eg: ALT-COMP-ANTI-VIRUS and ALT-COMP-WIDGETS)... this was a problem in the last implementation, too... the name that the ruletext is stored in should be taken from the RULE line in the MOD UPD instead of the other way around... that way an eight character filename
    can be given to the RUL file by the moderator...

    eg: RULE PASSLESS.RUL
    RULE ACAVIRUS.RUL
    RULE ACWIDGET.RUL

    a quick grep finds 78 echotags with nine or more characters in my .NA files...

    grep -E -e "^[A-Z0-9_\-]{9,} " *.na

    but i might have missed something, again...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... The worst thing about being lied to is knowing you weren't worth the truth. ---
    * Origin: (1:3634/12.73)
  • From Ben Ritchey@1:1/21 to Mark Lewis on Sunday, April 02, 2017 02:33:44
    * An ongoing debate between mark lewis and Ben Ritchey rages on ...

    ml { PASCAL_LESSONS will break it... in fact, any echo with more than eight
    ml { characters in the tag will break... it will be worse if there are two

    It knows how to handle long names, only using the 1st 8 characters. Dupes are a

    problem, but I'm looking into that & will keep you posted.

    ml { implementation, too... the name that the ruletext is stored in should
    ml { be taken from the RULE line in the MOD UPD instead of the other way
    ml { around... that way an eight character filename can be given to the RUL
    ml { file by the moderator...

    Not gonna happen {chuckle} too problematic :)

    ml { but i might have missed something, again...

    The software was tested with various TAG names (some long, some short) and it worked fine in all cases. The dupe problem can be fixed using LFNs, I just need

    to upgrade the parser. :)


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | (:) Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... I'm going crazy. Want to come along?
    --- GoldED+/W32-MSVC v1.1.5-b20161221 ... via Mystic BBS!
    * Origin: EList HQ - The Positronium Repository (1:1/21)
  • From Ben Ritchey@1:1/21 to Mark Lewis on Sunday, April 02, 2017 03:38:31
    * An ongoing debate between mark lewis and Ben Ritchey rages on ...

    ml { PASCAL_LESSONS will break it... in fact, any echo with more than eight

    Actually no, Rule file names use LFN technology now and work as intended.

    ml { but i might have missed something, again...

    {chuckle}


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet://cmech.dynip.com |
    | Email: fido4cmech(at)lusfiber.net |
    | (:) Home page: http://cmech.dynip.com/homepage/ | `----------- WildCat! Board 24/7 +1-337-984-4794 any BAUD 8,N,1 ---'

    ... Biology grows on you.
    --- GoldED+/W32-MSVC v1.1.5-b20161221 ... via Mystic BBS!
    * Origin: EList HQ - The Positronium Repository (1:1/21)