mirror of https://github.com/calzoneman/sync.git
Fix logging of customizations
This commit is contained in:
parent
ea79b7d6b1
commit
ef921b1f96
|
@ -92,7 +92,7 @@ CustomizationModule.prototype.handleSetCSS = function (user, data) {
|
|||
this.css = data.css.substring(0, 20000);
|
||||
this.sendCSSJS(this.channel.users);
|
||||
|
||||
this.channel.logger.log("[mod] " + user.name + " updated the channel CSS");
|
||||
this.channel.logger.log("[mod] " + user.getName() + " updated the channel CSS");
|
||||
};
|
||||
|
||||
CustomizationModule.prototype.handleSetJS = function (user, data) {
|
||||
|
@ -104,7 +104,7 @@ CustomizationModule.prototype.handleSetJS = function (user, data) {
|
|||
this.js = data.js.substring(0, 20000);
|
||||
this.sendCSSJS(this.channel.users);
|
||||
|
||||
this.channel.logger.log("[mod] " + user.name + " updated the channel JS");
|
||||
this.channel.logger.log("[mod] " + user.getName() + " updated the channel JS");
|
||||
};
|
||||
|
||||
CustomizationModule.prototype.handleSetMotd = function (user, data) {
|
||||
|
@ -116,7 +116,7 @@ CustomizationModule.prototype.handleSetMotd = function (user, data) {
|
|||
var motd = data.motd.substring(0, 20000);
|
||||
|
||||
this.setMotd(motd);
|
||||
this.channel.logger.log("[mod] " + user.name + " updated the MOTD");
|
||||
this.channel.logger.log("[mod] " + user.getName() + " updated the MOTD");
|
||||
};
|
||||
|
||||
module.exports = CustomizationModule;
|
||||
|
|
Loading…
Reference in New Issue