From 87d1582e011a9c0673f0c22288ab3492a7df8ca6 Mon Sep 17 00:00:00 2001 From: Leppunen Date: Tue, 22 Dec 2020 11:07:38 +0200 Subject: [PATCH] use connection pool for mod status check --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d7dcbfc..f8a7535 100644 --- a/index.js +++ b/index.js @@ -183,7 +183,7 @@ pnslWebSocket.on('message', async (data) => { try { if (channel) { - const mods = await clients[0].getMods(channel); + const mods = await getConnection().getMods(channel); if (!mods.includes(Config.Username)) return say(Config.Username, `I am not a moderator in channel ${channel}!`); } const data = await fetchList(listID);