ability to turn vowels off
This commit is contained in:
parent
8b9e3e4014
commit
99a1fd5cae
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue