log channel change

This commit is contained in:
Hri7566 2022-09-10 01:14:22 -04:00
parent 6ada8b6d17
commit cff13da2eb
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ const LOGGER_PARTICIPANT = {
id: 'logger' id: 'logger'
} }
const LOGGING_CHANNEL = 'lolwutsecretloggingchannel';
class Channel extends EventEmitter { class Channel extends EventEmitter {
constructor(server, _id, settings, cl) { constructor(server, _id, settings, cl) {
super(); super();
@ -55,7 +57,7 @@ class Channel extends EventEmitter {
this.logger.log('Created'); this.logger.log('Created');
if (this._id == 'supersecretsettings') { if (this._id == LOGGING_CHANNEL) {
if (cl.user.hasFlag('admin')) { if (cl.user.hasFlag('admin')) {
delete this.crown; delete this.crown;