From cb1b6db14e2f4138d80da65438428b944f344d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sun, 17 Sep 2017 01:11:04 -0400 Subject: [PATCH] Fix references to undefined `this` --- src/models/chan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/chan.js b/src/models/chan.js index 0706ff64..3a9ddcec 100644 --- a/src/models/chan.js +++ b/src/models/chan.js @@ -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) {