mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-22 00:54:31 -05:00
Chat monitor: fix typo
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user