mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 00:35:02 +00:00
Merge branch 'master' into fix_automodBanDuration
This commit is contained in:
commit
b3f5011f5d
31 changed files with 346 additions and 127 deletions
|
@ -66,8 +66,8 @@ export const BanCmd = modActionsCmd({
|
|||
const lock = await pluginData.locks.acquire(banLock(user));
|
||||
let forceban = false;
|
||||
const existingTempban = await pluginData.state.tempbans.findExistingTempbanForUserId(user.id);
|
||||
const banned = await isBanned(pluginData, user.id);
|
||||
if (!memberToBan) {
|
||||
const banned = await isBanned(pluginData, user.id);
|
||||
if (banned) {
|
||||
// Abort if trying to ban user indefinitely if they are already banned indefinitely
|
||||
if (!existingTempban && !time) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue