RE: [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin
RegRead can return other stuff than integers. It depends on the registry key type. So, if the user (for whatever reason) had manually changed the reg key type to a string (which is VERY common actually in scripts made by newbies), then the string "1" is not the same as the number 1 when you use identity operators (===).
When you use an equality operator (==) then the string "1" is the same as 1.
So, if somebody made a script which doesn't take in account that the registry key 'ChatName' is supposed to be of the REG_DWORD type (instead of a REG_SZ) when you change/write the value, then Markee's script will fail.
This post was edited on 12-14-2007 at 11:55 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|