diff --git a/index.js b/index.js index c25f1dc..a3ee703 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ xmpp.on("online", async (address) => { console.log("Connected to XMPP server"); for (const jid of config.xmpp.rooms) { - const msg = xml("presence", { to: `${jid}/${config.nick}` }); + const msg = xml("presence", { to: `${jid}/${config.xmpp.nick}` }); await xmpp.send(msg); }