From 29b7665279b69605da264ad9c5bc11b40e26e72c Mon Sep 17 00:00:00 2001 From: o5pxels Date: Sun, 20 Dec 2020 23:03:44 -0600 Subject: [PATCH] Add else to fix topic testing --- src/commands/new.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/new.js b/src/commands/new.js index 4ba559f..5e157f1 100644 --- a/src/commands/new.js +++ b/src/commands/new.js @@ -76,7 +76,7 @@ module.exports = { .setDescription('Please limit your ticket topic to less than 256 characters. A short sentence will do.') .setFooter(guild.name, guild.iconURL()) ); - } if (!/("|'|`)("|'|`)/.test(config.default_topic)) { + } else if (!/("|'|`)("|'|`)/.test(config.default_topic)) { topic = config.default_topic; } else if (topic.length < 1) {