When a username contains a hyphen (an allowed character in usernames) the javascript used splits the returned buddylist string on "-". This creates an array which is used to determine user online status and their userid.

When the username contains a hyphen the array is longer than expected and the userid and online status are not in the expected position.

Attached is my solution to the problem. I basically looped through the array parts and searched for the userid and the corresponding online status next to it. Once I found that I re-joined the previous username on "-" and displayed everything as expected.

CommentFileSizeAuthor
bugfix.txt1.07 KBChambrln