mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-14 05:57:18 +00:00
Fix nickname reset using having an erroneous canActOn check
This commit is contained in:
parent
e0a19331c3
commit
c4418fb36e
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export const NicknameResetCmd = utilityCmd({
|
||||||
},
|
},
|
||||||
|
|
||||||
async run({ message: msg, args, pluginData }) {
|
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"));
|
msg.channel.createMessage(errorMessage("Cannot reset nickname: insufficient permissions"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue