wwivbbs / wwiv

WWIV BBS Software v5
http://www.wwivbbs.org
Other
182 stars 71 forks source link

No mechanism for multiple LOGON_CMDs #1625

Open ericpareja opened 1 month ago

ericpareja commented 1 month ago

With our current code, there can only be one LOGON_CMD defined in WWIV.INI.

For flexibility, a function for reading in a .json file containing multiple logon commands consisting of .bas, door, .sh or .bat scripts to be executed on logon can be written.

See bbs/lilo.cpp lines 844-850.

ericpareja commented 1 month ago

in lilo

  1. check if {logon|logoff}.json exists in data dir
  2. read it
  3. loop and execute entries