use connection pool for mod status check

This commit is contained in:
Leppunen 2020-12-22 11:07:38 +02:00
parent d42b939af8
commit 87d1582e01

View file

@ -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);