Allow formatting in PMs and fix spelling mistake (#872)

This commit is contained in:
Charlie Kobayashi
2017-05-05 03:55:25 -04:00
committed by Guangcong Luo
parent 323195c4b6
commit f8d2ae936e
2 changed files with 2 additions and 2 deletions

View File

@@ -1456,7 +1456,7 @@
'<span class="message-pm"><i class="pmnote" data-name="' + Tools.escapeHTML(oName) + '">(Private to ' + Tools.escapeHTML(pm) + ')</i> ' + Tools.parseMessage(message) + '</span>' +
'</div>'
);
return; // PMs independently notify in the man menu; no need to make them notify again with `inchatpm`.
return; // PMs independently notify in the main menu; no need to make them notify again with `inchatpm`.
}
var lastMessageDates = Tools.prefs('logtimes') || (Tools.prefs('logtimes', {}), Tools.prefs('logtimes'));

View File

@@ -153,7 +153,7 @@
var $lastMessage = $chat.children().last();
var textContent = $lastMessage.html().indexOf('<span class="spoiler">') >= 0 ? '(spoiler)' : $lastMessage.children().last().text();
if (textContent && app.curSideRoom && app.curSideRoom.addPM && Tools.prefs('inchatpm')) {
app.curSideRoom.addPM(name, textContent, target);
app.curSideRoom.addPM(name, message, target);
}
if (!isSelf && textContent) {