Fix references to undefined `this`

This commit is contained in:
Jérémie Astori 2017-09-17 01:11:04 -04:00
parent 948f304bb9
commit cb1b6db14e
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ Chan.prototype.pushMessage = function(client, msg, increasesUnread) {
this.messages.push(msg);
if (client.config.log === true) {
writeUserLog(client, msg);
writeUserLog.call(this, client, msg);
}
if (Helper.config.maxHistory >= 0 && this.messages.length > Helper.config.maxHistory) {