log channel change
This commit is contained in:
parent
6ada8b6d17
commit
cff13da2eb
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue