Loss of userdata; temporary loss of aliases/triggers
Posted: 13 Feb 2016 09:34
I relogged earlier and it loaded my userdata but none of my triggers or aliases. I rebooted the browser and tried again and it loaded my aliases but not my triggers, then third time it loaded the aliases and triggers but the userdata was gone. The userdata didn't return. I've repopulated it (and made records of my scripts) but I thought I should the weirdness.
--
Okay, now my aliases are gone again. I think I may know what's causing it. Lemme see here...
--
Yeah, I think this script where I check for NaN is causing it on the next load. I'll take out the isNaN() and see if it stops happening.
--
Okay, it seems stable now but I'm not sure, so I'll call it a night.
The general form of the script that I think may have been responsible is:
When I ran it with no arguments it seemed to cause the issue on the next load.
--
Okay, now my aliases are gone again. I think I may know what's causing it. Lemme see here...
--
Yeah, I think this script where I check for NaN is causing it on the next load. I'll take out the isNaN() and see if it stops happening.
--
Okay, it seems stable now but I'm not sure, so I'll call it a night.
The general form of the script that I think may have been responsible is:
Code: Select all
gwc.userdata.n = parseInt(args[1], 10);
gwc.userdata.x = args['*'].substring(args['*'].indexOf(" ")+1, args['*'].length);
if(gwc.userdata.n === 0 || isNaN(gwc.userdata.n)) {
//stuff
}
else {
//other stuff
}