From 99a1fd5caef1defb6853d28e5cb228daaa8d7428 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sun, 9 May 2021 15:34:13 -0400 Subject: [PATCH] ability to turn vowels off --- src/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Room.js b/src/Room.js index 146f861..f81e1ae 100644 --- a/src/Room.js +++ b/src/Room.js @@ -327,7 +327,7 @@ class Room extends EventEmitter { message.m = "a"; message.a = msg.message; if (prsn.user.hasFlag('vowels')) { - message.a = message.a.split(/[aeiouAEIOU]/).join(prsn.user.flags["vowels"]); + if (prsn.user.flags.vowels != false) message.a = message.a.split(/[aeiouAEIOU]/).join(prsn.user.flags["vowels"]); } message.p = { color: p.user.color,