/**
  * Constructs this event.
  *
  * @param client the client
  * @param originalMessages original messages
  * @param negotiating if we are negotiating right now
  * @param acknowledgedCapabilities capabilities acknowledged
  */
 public CapabilitiesAcknowledgedEvent(
     @Nonnull Client client,
     @Nonnull List<ServerMessage> originalMessages,
     boolean negotiating,
     @Nonnull List<CapabilityState> acknowledgedCapabilities) {
   super(client, originalMessages, negotiating);
   Sanity.nullCheck(acknowledgedCapabilities, "Capabilities list cannot be null");
   this.acknowledgedCapabilities = Collections.unmodifiableList(acknowledgedCapabilities);
 }
 /**
  * Creates the event.
  *
  * @param client client for which this is occurring
  * @param originalMessages original messages
  * @param channel the channel
  * @param actor the actor inviting another
  * @param target the nick invited
  */
 public ChannelInviteEvent(
     @Nonnull Client client,
     @Nonnull List<ServerMessage> originalMessages,
     @Nonnull Channel channel,
     @Nonnull Actor actor,
     @Nonnull String target) {
   super(client, originalMessages, actor, channel);
   Sanity.nullCheck(target, "Target cannot be null");
   this.target = target;
 }