-
Question about logon event
From
mlong@VERT/INREALM to
Digital Man@VERT on Sun Oct 18 12:24:41 2020
I'm wanting to modify bullshit so that it can show only new bulletins on logon, but show all bulletins when accessed from the external menu.
My first though was adding a cmd line argument that would override the ini setting. The issue is that when you choose logon event under the external program, you can't specify any different cmd line arguments. So I either have to have 2 external program entries (with different cmd line options), or disable the logon event under the external program and instead use the global logon event entry in scfg.
So my question is can you think of a better way to do this? Is there a way for an external program to determine it is running under the logon event? Or is there some way to specify different cmd line arguments for external program events? Maybe a new % command line specifier?
---
ï¿ Synchronet ï¿ Inner Realm BBS - Charlotte, NC - innerrealmbbs.us
-
From
echicken@VERT/ECBBS to
mlong on Sun Oct 18 15:01:38 2020
Re: Question about logon eventã By: mlong to Digital Man@VERT on Sun Oct 18 2020 12:24:41ãã ml> So my question is can you think of a better way to do this? Is there a way forã ml> an external program to determine it is running under the logon event? Or isããPossibly like:ããload('nodedefs.js');ãif (bbs.node_action&NODE_LOGN) {ã // User is logging onã} else {ã // User is logged onã}ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.comã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Digital Man@VERT to
mlong on Sun Oct 18 12:34:07 2020
Re: Question about logon eventã By: mlong to Digital Man@VERT on Sun Oct 18 2020 12:24 pmãã > I'm wanting to modify bullshit so that it can show only new bulletins onã > logon, but show all bulletins when accessed from the external menu.ã >ã > My first though was adding a cmd line argument that would override the iniã > setting. The issue is that when you choose logon event under the externalã > program, you can't specify any different cmd line arguments. So I eitherã > have to have 2 external program entries (with different cmd line options),ã > or disable the logon event under the external program and instead use theã > global logon event entry in scfg.ã >ã > So my question is can you think of a better way to do this? Is there a wayã > for an external program to determine it is running under the logon event?ããYou could compare bbs.node_action to see if its value is NODE_LOGN, that would indicate the current node is still logging-on.ãã > Orã > is there some way to specify different cmd line arguments for externalã > program events? Maybe a new % command line specifier?ããI think the bbs.node_action check would be the cleanest solution and require no change to sbbs.ãã digital manããSling Blade quote #13:ãKarl: He lives inside of his own heart. That's an awful big place to live in.ãNorco, CA WX: 82.5øF, 34.0% humidity, 2 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
echicken on Sun Oct 18 12:36:04 2020
Re: Question about logon eventã By: echicken to mlong on Sun Oct 18 2020 03:01 pmãã > Re: Question about logon eventã > By: mlong to Digital Man@VERT on Sun Oct 18 2020 12:24:41ã >ã > ml> So my question is can you think of a better way to do this? Is there aã > ml> way forã > ml> an external program to determine it is running under the logon event?ã > ml> Or isã >ã > Possibly like:ã >ã > load('nodedefs.js');ã > if (bbs.node_action&NODE_LOGN) {ããExactly, but bbs.node_action isn't a bit field, so check for equality instead.ãã digital manããSling Blade quote #23:ãKarl: I reckon I'm gonna have to get used to looking at pretty people.ãNorco, CA WX: 83.7øF, 32.0% humidity, 0 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
mlong@VERT/INREALM to
Digital Man on Sun Oct 18 21:04:31 2020
Thanks to you both. I submitted a merge request, as I think it would be a useful feature for others to have
---
ï¿ Synchronet ï¿ Inner Realm BBS - Charlotte, NC - innerrealmbbs.us