dunirc icon indicating copy to clipboard operation
dunirc copied to clipboard

Javascript/Userlist/ function mejoin(e) Issue

Open hesa2020 opened this issue 9 years ago • 1 comments

Hello there is an issue in the function mejoin(e)

Sometimes the lenght of: var newmsg = e.split("\r\n:"); Is not above 1 and therefore trying to do newmsg = newmsg[1].split(" "); breaks the script.

I changed to: var newmsg = e.split("\r\n:"); if(newmsg.length < 2) return; newmsg = newmsg[1].split(" ");

As a temp fix to prevent from breaking the code but this means all the code in the function is not executed.

Also Sometimes after reloading the page, it connects, it can send messages but not receive them. And when i seems to join correctly the channel and we can send messages between 2 clients. 1 of the client can see the userlist but the other cant.

hesa2020 avatar Oct 11 '16 23:10 hesa2020

I noticed, when both clients does not receive the messages i type: /join #Channel in both chats, and the userlist updates in ONE of them and then, they can both chat to each other.

hesa2020 avatar Oct 12 '16 00:10 hesa2020