mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-04 23:02:18 +02:00
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);
|
||||
|
||||
if (client.config.log === true) {
|
||||
writeUserLog(client, msg);
|
||||
writeUserLog.call(this, client, msg);
|
||||
}
|
||||
|
||||
if (Helper.config.maxHistory >= 0 && this.messages.length > Helper.config.maxHistory) {
|
||||
|
|
Loading…
Reference in a new issue