diff --git a/index.js b/index.js index 504fe87..67232d5 100644 --- a/index.js +++ b/index.js @@ -522,6 +522,7 @@ xmpp.on("stanza", (stanza) => { }).catch((err) => { console.log(`${colors.red("[ERROR]")} Failed to send message to ${channel.guild.ownerId}`); }).then(() => { + if (channel.guildId == config.discord.mainGuild) return; db.run(`DELETE FROM channels WHERE channelid = ? AND iemchannel = ?`, [channel.id, fromChannel], (err) => { if (err) { console.error(err.message);