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) {