quote:
Originally posted by Genesis Genome
According to the documentation, the timer is only created once when called and is destroyed after completion, so I don't understand your problem with the timer never going away.
It is created only when a matching word is found, and deletes itself 5 seconds later.
The problem is that when the timer is started, the user could sign out and optionally sign back in on another account and when the timer is finished, the code gets executed on the wrong account. Therefore, it is wise to cancel your timers on sign out or, as mentioned by Cookie's footnote, make your timer ID contain user-specific details to determine the user and/or picture index.
quote:
Originally posted by Genesis Genome
and the problem with changing dps to fast and overwriting the original I am well aware of, however even if I don't say anything at all, it will still sometimes switch back. so I know this is not the problem either.
Well, in my opinion you shouldn't allow it to change more than 5 times per minute, since every time you change it, it has to be uploaded to the Messenger servers. Seeing that you already change it twice with a five second interval, you might run into some troubles. For example, you could add a timer after your "DPDelay" timer was executed to prevent changes for the next 20 seconds or so using some kind of global variable.