This commit is contained in:
Hri7566 2022-03-29 19:37:04 +02:00
parent 1b58f426a2
commit 442e34cbe3
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class Channel extends EventEmitter {
this.bans = new Map(); this.bans = new Map();
this.flags = {} this.flags = {}
this.logger.log('Created');
Database.getRoomSettings(this._id, (err, set) => { Database.getRoomSettings(this._id, (err, set) => {
if (err) { if (err) {
return; return;
@ -347,6 +349,9 @@ class Channel extends EventEmitter {
message.a = msg.message; message.a = msg.message;
if (prsn.user.hasFlag('chat_curse_1')) { if (prsn.user.hasFlag('chat_curse_1')) {
if (prsn.user.flags['chat_curse_1'] != false) message.a = message.a.split(/[aeiou]/).join('o').split(/[AEIOU]/).join('O'); if (prsn.user.flags['chat_curse_1'] != false) message.a = message.a.split(/[aeiou]/).join('o').split(/[AEIOU]/).join('O');
}
if (prsn.user.hasFlag('chat_curse_2')) {
} }
message.p = { message.p = {
color: p.user.color, color: p.user.color,

View File

@ -332,4 +332,8 @@ module.exports = (cl) => {
c.emit(msg.msg.m, msg.msg); c.emit(msg.msg.m, msg.msg);
}); });
}); });
cl.on('subscribe to admin stream', (msg, admin) => {
if (!admin) return;
});
} }