summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-26 23:26:16 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-26 23:26:16 +0200
commit3fce1e57d76a168f91f42f0130d86bca57590381 (patch)
tree6a0e4f48139dfdc01695423965777e38641238db
parenta58987be04cebebf84e1e7578689da355f385367 (diff)
downloadbridge-3fce1e57d76a168f91f42f0130d86bca57590381.tar.gz
bridge-3fce1e57d76a168f91f42f0130d86bca57590381.zip
typo - fix player.id unknown
-rw-r--r--api.js2
1 files changed, 1 insertions, 1 deletions
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