mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 19:42:06 +00:00
Fix safe nick for hover
This commit is contained in:
parent
5791803ca5
commit
dfdab263a5
1 changed files with 1 additions and 1 deletions
|
|
@ -1450,7 +1450,7 @@ function addChatMessage(data) {
|
||||||
var div = formatChatMessage(data, LASTCHAT);
|
var div = formatChatMessage(data, LASTCHAT);
|
||||||
// Incoming: a bunch of crap for the feature where if you hover over
|
// Incoming: a bunch of crap for the feature where if you hover over
|
||||||
// a message, it highlights messages from that user
|
// a message, it highlights messages from that user
|
||||||
var safeUsername = data.username.replace(/[^\w-]/g, '$');
|
var safeUsername = data.username.replace(/[^\w-]/g, '\\$');
|
||||||
div.addClass("chat-msg-" + safeUsername);
|
div.addClass("chat-msg-" + safeUsername);
|
||||||
div.appendTo($("#messagebuffer"));
|
div.appendTo($("#messagebuffer"));
|
||||||
div.mouseover(function() {
|
div.mouseover(function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue