Only append "says" to notifications if its a message

This commit is contained in:
Pavel Djundik 2016-12-17 13:05:12 +02:00 committed by GitHub
parent 3d0e1fd9f0
commit 7933b2453d

View File

@ -1133,7 +1133,9 @@ $(function() {
if (!button.hasClass("query")) { if (!button.hasClass("query")) {
title += " (" + button.data("title").trim() + ")"; title += " (" + button.data("title").trim() + ")";
} }
if (msg.type === "message") {
title += " says:"; title += " says:";
}
body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim(); body = msg.text.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim();
} }