From 3fce1e57d76a168f91f42f0130d86bca57590381 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 26 Mar 2017 23:26:16 +0200 Subject: typo - fix player.id unknown --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api.js') diff --git a/api.js b/api.js index 81fe2b5..e4196a6 100644 --- a/api.js +++ b/api.js @@ -347,7 +347,7 @@ async function listen() { console.log("sending '%s' notification for player '%s' ('%s')", msg.channel, name, id); if (name != undefined) io.emit(name, msg.channel); - if (id != undefined) io.emit(player.id, msg.channel); + if (id != undefined) io.emit(id, msg.channel); // don't give up on player not being found in db (= playerByAttr returns undefined), // be optimistic and try to notify what we can -- cgit v1.3.1