import net.pterodactylus.irc.Connection;
import net.pterodactylus.irc.Source;
+import com.google.common.base.Optional;
+
/**
* Event that notifies a listener that a client has left a channel.
*
private final Source client;
/** The message given by the client. */
- private final String message;
+ private final Optional<String> message;
/**
* Creates a new channel joined event.
* @param message
* The message given by the client
*/
- public ChannelLeft(Connection connection, String channel, Source client, String message) {
+ public ChannelLeft(Connection connection, String channel, Source client, Optional<String> message) {
super(connection, channel);
this.client = client;
this.message = message;
*
* @return The message given by the client
*/
- public String message() {
+ public Optional<String> message() {
return message;
}