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
1 changed files with 1 additions and 1 deletions

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