mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 20:43:08 +00:00
Merge pull request #1585 from thelounge/xpaw/fix-1584
Do not try to write user log if network is not found
This commit is contained in:
commit
82b7b3549d
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ Chan.prototype.toJSON = function() {
|
||||||
function writeUserLog(client, msg) {
|
function writeUserLog(client, msg) {
|
||||||
const target = client.find(this.id);
|
const target = client.find(this.id);
|
||||||
|
|
||||||
|
if (!target) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
userLog.write(
|
userLog.write(
|
||||||
client.name,
|
client.name,
|
||||||
target.network.host, // TODO: Fix #1392, multiple connections to same server results in duplicate logs
|
target.network.host, // TODO: Fix #1392, multiple connections to same server results in duplicate logs
|
||||||
|
|
Loading…
Reference in a new issue