I have a JavaScript script where I'd like to check for the user's spin pause setting. I saw in sbbsdefs.js that USER_NOPAUSESPIN represents no spinning cursor at the pause prompt for user.settings. However, when I check for this, it seems it's always true, regardless of my spinning cursor setting. I've tried a simple test to ensure I'm correctly checking for it:
if (user.settings & USER_NOPAUSESPIN)
console.print("No spin pause");
else
console.print("Spin pause is enabled");
Regardless of whether my spin pause is enabled or not, that code hits the "No spin pause" case.
I've also tried the "if" test this way (which should be equivalent) with the same result:
if ((user.settings & USER_NOPAUSESPIN) == USER_NOPAUSESPIN)
console.print("No spin pause");
else
console.print("Spin pause is enabled");
I'm not sure if I'm not checking it correctly or if it's a bug in Synchronet. I'm currently running Synchronet 3.17 for Windows built on January 3, 2016.
Perhaps you're confusing USER_NOPAUSESPIN for USER_SPIN? The USER_SPIN setting enables the spinning cursor at all input prompts. The USER_NOPAUSESPIN *disables* the spinning cursor at the pause prompt (only). One has no effect on the other.
Re: USER_NOPAUSESPIN in user.settings
By: Digital Man to Nightfox on Sun Apr 24 2016 02:54:32
Perhaps you're confusing USER_NOPAUSESPIN for USER_SPIN? The USER_SPIN setting enables the spinning cursor at all input prompts. The USER_NOPAUSESPIN *disables* the spinning cursor at the pause prompt (only). One has no effect on the other.
I'm not trying to enable/disable anything, I'm only trying to check to see if the user has one of those settings enabled. It looks like if I check for USER_SPIN, it works as expected.
In the user settings screen, I only see one relevant setting, "Spinning Cursor". I don't see a separate setting for spinning cursor only at the pause prompt. Does USER_NOPAUSESPIN correspond to any of the user settings?
Or is it only intended for JavaScript scripts to disable spinning at the pause prompt for some of the JS functions?
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 115:57:05 |
Calls: | 375 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,886 |