From c1fc9744e3d841338942f3b96289e80742aff3a0 Mon Sep 17 00:00:00 2001 From: Nils <7890309+DarkView@users.noreply.github.com> Date: Thu, 28 Jan 2021 00:27:45 +0100 Subject: [PATCH] Fix nickname reset using having an erroneous canActOn check (#138) --- backend/src/plugins/Utility/commands/NicknameResetCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/NicknameResetCmd.ts b/backend/src/plugins/Utility/commands/NicknameResetCmd.ts index 6e954743..e1d74ba0 100644 --- a/backend/src/plugins/Utility/commands/NicknameResetCmd.ts +++ b/backend/src/plugins/Utility/commands/NicknameResetCmd.ts @@ -14,7 +14,7 @@ export const NicknameResetCmd = utilityCmd({ }, async run({ message: msg, args, pluginData }) { - if (msg.member.id !== args.member.id && canActOn(pluginData, msg.member, args.member)) { + if (msg.member.id !== args.member.id && !canActOn(pluginData, msg.member, args.member)) { msg.channel.createMessage(errorMessage("Cannot reset nickname: insufficient permissions")); return; }