https://gitlab.synchro.net/main/sbbs/-/merge_requests/288#note_3503
What is the purpose of this (gSMBDefsLoaded)? It doesn't appear to be used anywhere.
require() already does the necessary optimization. Checking for file existence seems unnecessary and a slight performance hit. Have you seen this example design pattern in any other exec/*.js files?
Just move the `require("smbdefs.js", "SMB_POLL_ANSWER");` out of the condition and you'll be good to go.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net