without looking at the actual code:
quote:
Originally posted by MeEtc
Personalized status text is not guaranteed to be submitted. As both OnEvent_MyStatusChange and OnEvent_MyNameChange are called at the same time when a personalized status is enabled, the http request for both is a race to the server. If the request from name change reaches the server last, the personalized status text is sent last.
use OnEvent_EnterPersonalizedStatus and OnEvent_LeavePersonalizedStatus and when those events fire, 'disable' the others from sending data.
In fact, you can do it even easier and with each kind of event:
- EnterPersonalizedStatus
- LeavePersonalizedStatus
- MyMediaChange
- MyNameChange
- MyPsmChange
- MyStatusChange
- SigninReady
- Signout
... lookup your screen name, status, psm, and dp all at once in each event (aka all the events would contain the exact same code) and send everything at once (or only the things that have changed since last time; this would also prevent double sendings).
EDIT: downloading the script now....
EDIT:
- Big bug: config window doesn't show when clicking "config" (config is empty object, line 67 in statushttp.js).
- Big bug: you can only have 1 of each events. Currently you have multiple entries of some events (like SignOut).
- Note: you can have a psm as well as a media at the same time.
- Note: PSMs, nicks, etc can all contain formatting codes (as well as bbcode, irc code as internal style codes). Dunno if you want to send them as such or not.
- Tip: util_file.js and util_string contain some functions which can be made a lot shorter/easier. Some functions contain potential bugs.
- Tip:
if((MessengerStart == false) && (Messenger.MyStatus > 1)) can be replaced with just
if(Messenger.MyStatus > 1).... and some other things could be optimized, but that's not important.