Subj : USER_NOPAUSESPIN in user.settings
To   : All
From : Nightfox
Date : Sat Apr 23 2016 02:53 pm

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.

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com