From cff13da2eb7de2eee6b5d672247700fbffcca1b4 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Sat, 10 Sep 2022 01:14:22 -0400 Subject: [PATCH] log channel change --- src/Channel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Channel.js b/src/Channel.js index b5fa347..4a1381c 100644 --- a/src/Channel.js +++ b/src/Channel.js @@ -26,6 +26,8 @@ const LOGGER_PARTICIPANT = { id: 'logger' } +const LOGGING_CHANNEL = 'lolwutsecretloggingchannel'; + class Channel extends EventEmitter { constructor(server, _id, settings, cl) { super(); @@ -55,7 +57,7 @@ class Channel extends EventEmitter { this.logger.log('Created'); - if (this._id == 'supersecretsettings') { + if (this._id == LOGGING_CHANNEL) { if (cl.user.hasFlag('admin')) { delete this.crown;