forked from Hri7566/mpp-server-dev2
log channel change
This commit is contained in:
parent
c2cfb4b81c
commit
09acb758fc
|
@ -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