Added settings for disabling chat in a channel

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-26 23:29:36 +02:00
parent 7ab5d4f399
commit c12e633729
6 changed files with 133 additions and 250 deletions

View File

@@ -137,7 +137,7 @@ var Chat = {
},
channelchat: function(data, time_sent, disable_blink) {
if(data.msg.substring(0,1) == ":" && !chat_active && !disable_blink) {
if(data.msg.substring(0,1) == ":" && !chat_active && !disable_blink && data.from.toLowerCase() != "system") {
document.querySelector("#favicon").setAttribute("href", "/assets/images/highlogo.png");
unseen = true;
chat_unseen = true;