diff --git a/backend/src/plugins/Utility.ts b/backend/src/plugins/Utility.ts index 0e438c8f..b4153df0 100644 --- a/backend/src/plugins/Utility.ts +++ b/backend/src/plugins/Utility.ts @@ -720,7 +720,7 @@ export class UtilityPlugin extends ZeppelinPlugin { responseMsg = await msg.channel.createMessage(errorMessage(`Found no messages to clean!`)); } - if (targetChannel.id !== msg.channel.id) { + if (targetChannel.id === msg.channel.id) { // Delete the !clean command and the bot response if a different channel wasn't specified // (so as not to spam the cleaned channel with the command itself) setTimeout(() => {