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