ability to turn vowels off

This commit is contained in:
Hri7566 2021-05-09 15:34:13 -04:00
parent 8b9e3e4014
commit 99a1fd5cae
1 changed files with 1 additions and 1 deletions

View File

@ -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,