//
/**
+ * Checks whether the given source is the client represented by this
+ * connection.
+ *
+ * @param source
+ * The source to check
+ * @return {@code true} if this connection represents the given source, {@code
+ * false} otherwise
+ */
+ public boolean isSource(Source source) {
+ return source.nick().isPresent() && source.nick().get().equals(nickname);
+ }
+
+ /**
* Joins the given channel.
*
* @param channel