Subj : Using sbbsdefs and userdefs
To   : digital man
From : Nelgin
Date : Wed Aug 16 2023 02:12 pm

Hi am I supposed to use sbbsdefs.js and userdefs.js in the same script?

I'm using several properties from userdefs so I have

require("sbbsdefs.js", 'USER_EXPERT');
load("userdefs.js");

but my script complains about

TypeError: redeclaration of const USER_DELETED

Since sbbsdefs is only importing USER_EXPERT, shouldn't it ignore the definition of USER_DELETED ? And why would it be defined in there when it's already defined in userdefs.js?

Nightfox suggested if I use require with userdefs then it might look at the other properties anyway, but that's not the case.

Would appreciate some advice please.

Thanks,
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com