From 7933b2453d505d8b09cbaf44cdb75a0862ec717c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 17 Dec 2016 13:05:12 +0200 Subject: [PATCH] Only append "says" to notifications if its a message --- client/js/lounge.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 66b5b1a5..8d1179a5 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -1133,7 +1133,9 @@ $(function() { if (!button.hasClass("query")) { 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(); }