Merge pull request #1535 from thelounge/astorije/fix-master

Fix references to undefined `this`
This commit is contained in:
Jérémie Astori 2017-09-17 02:57:43 -04:00 committed by GitHub
commit 4f38bc9077

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) {