ability to turn vowels off
This commit is contained in:
parent
f8445fb9d9
commit
d851226915
|
@ -327,7 +327,7 @@ class Room extends EventEmitter {
|
||||||
message.m = "a";
|
message.m = "a";
|
||||||
message.a = msg.message;
|
message.a = msg.message;
|
||||||
if (prsn.user.hasFlag('vowels')) {
|
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 = {
|
message.p = {
|
||||||
color: p.user.color,
|
color: p.user.color,
|
||||||
|
|
Loading…
Reference in New Issue