mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Allow formatting in PMs and fix spelling mistake (#872)
This commit is contained in:
committed by
Guangcong Luo
parent
323195c4b6
commit
f8d2ae936e
@@ -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'));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user