Merge pull request #1535 from thelounge/astorije/fix-master
Fix references to undefined `this`
This commit is contained in:
commit
4f38bc9077
@ -59,7 +59,7 @@ Chan.prototype.pushMessage = function(client, msg, increasesUnread) {
|
|||||||
this.messages.push(msg);
|
this.messages.push(msg);
|
||||||
|
|
||||||
if (client.config.log === true) {
|
if (client.config.log === true) {
|
||||||
writeUserLog(client, msg);
|
writeUserLog.call(this, client, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Helper.config.maxHistory >= 0 && this.messages.length > Helper.config.maxHistory) {
|
if (Helper.config.maxHistory >= 0 && this.messages.length > Helper.config.maxHistory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user