TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Digital Man
from: deon
date: 2022-04-25 12:55:00
subject: Enhancements to msg_areas

  Re: Enhancements to msg_areas and MsgBase.
  By: Digital Man to deon on Sun Apr 24 2022 10:10 am

 >  > The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows
 >  > grp_number,
 >  > but not index.
 >
 > The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.
 >
 >  > Is that an ommission? (If so, can it be added).
 >
 > It was intentional (there's no array being generated when a MsgBase object is created).

OK, makes sense.

I got it from here https://synchro.net/docs/jsobjs.html#MsgBase.cfg_object_properties, I guess it needs updating in case it throws somebody else off :)

 > Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).

Ahh, OK that should work too, thanks. I'll have a play.

 > I'll add a issue/request to gitlab for that enhancement.

Thank you :)


...лоеп

---
 ю Synchronet ю Alterant | an SBBS in Docker on Pi!
                                                          
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.