Fix disabling ticket limit using 0
This commit is contained in:
parent
7f13161853
commit
3a94de9f23
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ public class NewCommand : ApplicationCommandModule
|
|||
return (false, "You cannot use this command in a ticket channel.");
|
||||
}
|
||||
|
||||
if (!Database.IsStaff(userID) && Database.TryGetOpenTickets(userID, out List<Database.Ticket> ownTickets) && ownTickets.Count >= Config.ticketLimit)
|
||||
if (!Database.IsStaff(userID)
|
||||
&& Database.TryGetOpenTickets(userID, out List<Database.Ticket> ownTickets)
|
||||
&& (ownTickets.Count >= Config.ticketLimit && Config.ticketLimit != 0))
|
||||
{
|
||||
return (false, "You have reached the limit for maximum open tickets.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue