From 8e812aab2f6f1a1e5bcc14d738d8917ce4c5a1a7 Mon Sep 17 00:00:00 2001 From: Nils <7890309+DarkView@users.noreply.github.com> Date: Sat, 13 Feb 2021 19:04:16 +0100 Subject: [PATCH] Allow !info to find vanity invites shorter than 6 characters (#149) --- backend/src/plugins/Utility/commands/InfoCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/InfoCmd.ts b/backend/src/plugins/Utility/commands/InfoCmd.ts index f47fa139..10fc500a 100644 --- a/backend/src/plugins/Utility/commands/InfoCmd.ts +++ b/backend/src/plugins/Utility/commands/InfoCmd.ts @@ -82,7 +82,7 @@ export const InfoCmd = utilityCmd({ } // 5. Invite - const inviteCode = await parseInviteCodeInput(value); + const inviteCode = parseInviteCodeInput(value) ?? value; if (inviteCode) { const invite = await resolveInvite(pluginData.client, inviteCode, true); if (invite && userCfg.can_inviteinfo) {