From b09ea1dfd0d4176e2848a46e128eeed35fc86dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A4r=20Halberkamp?= Date: Tue, 18 Sep 2018 03:44:46 +0200 Subject: [PATCH] Chat monitor: fix typo --- chat-plugins/chat-monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-plugins/chat-monitor.js b/chat-plugins/chat-monitor.js index 2ee58167c4..e64747bb3c 100644 --- a/chat-plugins/chat-monitor.js +++ b/chat-plugins/chat-monitor.js @@ -146,7 +146,7 @@ let chatfilter = function (message, user, room) { } for (let line of filterWords.wordfilter) { if (typeof line === 'string') continue; // Failsafe to appease typescript. - message = message.replace(line[0], line[1]); + message = message.replace(line[0], line[2] || ''); } return message;