[Solved] Highlight ping if the user is in the chatroom, Javascript
What you can do, is keep a list of usernames on the clients and server (give to new clients connecting), and then check if that username is in that list, if so then highlight the ping. The code I got was: function highlight(message){ if(message == “”) { return message } let mentions = message.match(/@\b([A-Za-z0-9]+)\b/g) if … Read more