summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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