/// <summary> /// Releases the ticket. /// </summary> /// <param name="session">The session.</param> /// <param name="ticketId">The ticket identifier.</param> internal void ReleaseTicket(GameClient session, uint ticketId) { SupportTicket ticket = this.GetTicket(ticketId); if (ticket == null || ticket.Status != TicketStatus.Picked || ticket.ModeratorId != session.GetHabbo().Id) { return; } ticket.Release(true); SendTicketToModerators(ticket); }
public void ReleaseTicket(GameClient Session, int TicketId) { SupportTicket Ticket = GetTicket(TicketId); if (Ticket == null || Ticket.Status != TicketStatus.PICKED || Ticket.ModeratorId != Session.GetHabbo().Id) { return; } Ticket.Release(); SendTicketToModerators(Ticket); }