diff --git a/Commands/NewCommand.cs b/Commands/NewCommand.cs index c86a9eb..0660277 100644 --- a/Commands/NewCommand.cs +++ b/Commands/NewCommand.cs @@ -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 ownTickets) && ownTickets.Count >= Config.ticketLimit) + if (!Database.IsStaff(userID) + && Database.TryGetOpenTickets(userID, out List ownTickets) + && (ownTickets.Count >= Config.ticketLimit && Config.ticketLimit != 0)) { return (false, "You have reached the limit for maximum open tickets."); }