Merge pull request #805 from thelounge/xpaw/notif-says

Only append "says" to notifications if its a message
This commit is contained in:
Jérémie Astori 2016-12-17 12:22:52 -05:00 committed by GitHub
commit 3c8179fda1

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() + ")";
} }
title += " says:"; if (msg.type === "message") {
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();
} }