Here is the bug.
I have following code in my extension:
Code: Select all
var userObj = _server.getUserByChannel(chan)
uVars = {}
uVars.sign = "00000000000000000010001110010100011"
_server.setUserVariables(userObj, uVars)
[Received]: <msg t="sys"><body action="joinOK" r="1"><pid id="0" /><vars /><uLs r="1"><u i="23" m="0"><n>cel</n><vars><var n="sign" t="s">00000000000000000010001110010100011</var></vars></u></uLs></body></msg>
You can see that type of my variable is set to string (t="s").
But when I try to get value of my "sign" variable using getVariables() function I received string "1075871753" instead of "00000000000000000010001110010100011". It seams that your message parser does some evaluations and does not preserve exact values of variables.