From f8d2ae936e00a6ac63d74199131bd3ed61c65a33 Mon Sep 17 00:00:00 2001 From: Charlie Kobayashi Date: Fri, 5 May 2017 03:55:25 -0400 Subject: [PATCH] Allow formatting in PMs and fix spelling mistake (#872) --- js/client-chat.js | 2 +- js/client-mainmenu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/client-chat.js b/js/client-chat.js index 14eaf4415..787257c74 100644 --- a/js/client-chat.js +++ b/js/client-chat.js @@ -1456,7 +1456,7 @@ '(Private to ' + Tools.escapeHTML(pm) + ') ' + Tools.parseMessage(message) + '' + '' ); - 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')); diff --git a/js/client-mainmenu.js b/js/client-mainmenu.js index 50dbc7002..f626a4090 100644 --- a/js/client-mainmenu.js +++ b/js/client-mainmenu.js @@ -153,7 +153,7 @@ var $lastMessage = $chat.children().last(); var textContent = $lastMessage.html().indexOf('') >= 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) {