/** The channels that should be monitored. */
private final Collection<Channel> channels = Sets.newHashSet();
+ /** The channels that are currentlymonitored. */
+ private final Collection<Channel> joinedChannels = Sets.newHashSet();
+
/** The current network connections. */
private final Map<Network, Connection> networkConnections = Collections.synchronizedMap(Maps.<Network, Connection>newHashMap());
}
/**
+ * Returns all currently joined channels.
+ *
+ * @return All currently joined channels
+ */
+ public Collection<Channel> joinedChannels() {
+ return ImmutableSet.copyOf(joinedChannels);
+ }
+
+ /**
* Returns all currently known bots.
*
* @return All currently known bots