mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +00:00
Fixed ban command
This commit is contained in:
parent
2874a0cf83
commit
a49bb81ce1
1 changed files with 63 additions and 63 deletions
|
@ -60,8 +60,7 @@ export async function actualBanCmd(
|
|||
} else {
|
||||
forceban = true;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// Abort if trying to ban user indefinitely if they are already banned indefinitely
|
||||
if (!existingTempban && !time) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(context, `User is already banned indefinitely.`);
|
||||
|
@ -132,6 +131,7 @@ export async function actualBanCmd(
|
|||
lock.unlock();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we're allowed to ban this member if they are on the server
|
||||
if (!forceban && !canActOn(pluginData, author, memberToBan!)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue