Node.js based forum software built for the modern web
closes #653
Baris Soner Usaklidfa4cd4ae3b9
diff --git a/src/websockets.js b/src/websockets.jsindex b7ccb81ee2..4547f1d3b1 100644--- a/src/websockets.js+++ b/src/websockets.js@@ -714,10 +714,10 @@ websockets.init = function(io) {return;}- var finalMessage = username + ' : ' + msg,- notifText = 'New message from <strong>' + username + '</strong>',- username = usersData[0].username,- toUsername = usersData[1].username;+ var username = usersData[0].username,+ toUsername = usersData[1].username,+ finalMessage = username + ' : ' + msg,+ notifText = 'New message from <strong>' + username + '</strong>';if (!isUserOnline(touid)) {notifications.create(notifText, 'javascript:app.openChat('' + username + '', ' + uid + ');', 'notification_' + uid + '_' + touid, function(nid) {