forked from Hri7566/mpp-server-dev2
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.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