Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Any given program will expand to fill available memory.


computers / alt.bbs.synchronet / bbs.atcodes()

SubjectAuthor
* bbs.atcodes()deon
`- bbs.atcodes()Digital Man

1
bbs.atcodes()

<626D28E6.43865.dove-syncdisc@bbs.leenooks.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=16057&group=alt.bbs.synchronet#16057

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-1o9-this (deon)
Subject: bbs.atcodes()
Message-ID: <626D28E6.43865.dove-syncdisc@bbs.leenooks.net>
X-Comment-To: Digital Man
Organization: Alterant
Newsgroups: alt.bbs.synchronet
X-FTN-PID: Synchronet 3.19c-Linux master/c0f42027d Mar 2 2022 GCC 8.3.0
X-FTN-MSGID: 43865.dove-syncdisc@10:1/4 26d30a3f
X-FTN-CHRS: CP437 2
WhenImported: 20220430221742+1000 1258
WhenExported: 20220430230947+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 43865
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 34
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 30 Apr 2022 13:11:58 UTC
Date: Sat, 30 Apr 2022 22:17:42 +1000
X-Received-Bytes: 2233
 by: deon - Sat, 30 Apr 2022 12:17 UTC

To: Digital Man
Hey DM,

I've been playing with bbs.atcodes(), and I've noticed the following:

synchronet: term Node 1 <X> Replacing [@DATETIME-L15@] with [Sat Apr 30 2022]
synchronet: term Node 1 <X> Replacing [@TIME-L8@] with [09:42 pm]

synchronet: term Node 1 <X> Replacing [@DATETIME<pipe>L15@] with [null]
synchronet: term Node 1 <X> Replacing [@TIME<pipe>L8@] with [null]

synchronet: term Node 1 <X> Replacing [@STATS.LTODAY-Z2@] with []
synchronet: term Node 1 <X> Replacing [@STATS.TTODAY-Z2@] with []

synchronet: term Node 1 <X> Replacing [@STATS.LTODAY@] with [5]
synchronet: term Node 1 <X> Replacing [@STATS.TTODAY@] with [31]

ie:

If I use the pipe delimiter (I'm using the word <pipe> above only in this message), I'm getting "null" instead of the value (it works with the dash delimiter).

For the STATS<dot>XXX I'm getting nothing returned (regardless of whether I use a dash or pipe delimiter), but I do get a return if I remove the delimiter altogether.

This is: JSexec v3.19c-Linux master/c0f42027d

I think bbs.atcodes() is not working correct, am I on the wrong track?

....δεσ∩

---
■ Synchronet ■ Alterant | an SBBS in Docker on Pi!
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

bbs.atcodes()

<626D8938.46856.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=16059&group=alt.bbs.synchronet#16059

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-1142-this (Digital Man)
Subject: bbs.atcodes()
Message-ID: <626D8938.46856.sync@vert.synchro.net>
X-Comment-To: deon
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <626D28E6.43865.dove-syncdisc@bbs.leenooks.net>
References: <626D28E6.43865.dove-syncdisc@bbs.leenooks.net>
X-FTN-PID: Synchronet 3.19c-Win32 master/d40242294 Apr 28 2022 MSC 1929
X-FTN-MSGID: 46856.sync@1:103/705 26d37640
X-FTN-REPLY: 43865.dove-syncdisc@10:1/4 26d30a3f
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.19c-Win32 NewsLink 1.113]
Lines: 49
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 30 Apr 2022 19:08:45 UTC
Date: Sat, 30 Apr 2022 12:08:40 -0700
X-Received-Bytes: 2868
 by: Digital Man - Sat, 30 Apr 2022 19:08 UTC

To: deon
Re: bbs.atcodes()
By: deon to Digital Man on Sat Apr 30 2022 10:17 pm

> Hey DM,
>
> I've been playing with bbs.atcodes(), and I've noticed the following:
>
> synchronet: term Node 1 <X> Replacing [@DATETIME-L15@] with [Sat Apr 30
> 2022] synchronet: term Node 1 <X> Replacing [@TIME-L8@] with [09:42 pm]
>
> synchronet: term Node 1 <X> Replacing [@DATETIME<pipe>L15@] with [null]
> synchronet: term Node 1 <X> Replacing [@TIME<pipe>L8@] with [null]
>
> synchronet: term Node 1 <X> Replacing [@STATS.LTODAY-Z2@] with []
> synchronet: term Node 1 <X> Replacing [@STATS.TTODAY-Z2@] with []
>
> synchronet: term Node 1 <X> Replacing [@STATS.LTODAY@] with [5]
> synchronet: term Node 1 <X> Replacing [@STATS.TTODAY@] with [31]
>
> ie:
>
> If I use the pipe delimiter (I'm using the word <pipe> above only in this
> message), I'm getting "null" instead of the value (it works with the dash
> delimiter).

That's expected: bbs.atcode() does not support the formatting modifiers.

> For the STATS<dot>XXX I'm getting nothing returned (regardless of whether I
> use a dash or pipe delimiter), but I do get a return if I remove the
> delimiter altogether.

Same answer: you can't use the format modifiers with bbs.atcode().

> This is: JSexec v3.19c-Linux master/c0f42027d

Are you sure about that? JSexec doesn't instantiate the 'bbs' object, so that seems unlikely. But no matter, it's not an sbbs-version issue.

> I think bbs.atcodes() is not working correct, am I on the wrong track?

Working as expected.
--
digital man (rob)

Synchronet/BBS Terminology Definition #51:
MODEM = Modulator/Demodulator
Norco, CA WX: 77.2°F, 43.0% humidity, 10 mph E wind, 0.00 inches rain/24hrs
--- Synchronet 3.19c-Win32 NewsLink 1.113
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor