Ejemplo n.º 1
0
 /**
  * Retrieves a shared channel object from the channel list.
  *
  * @param channel A channel object representing this channel.
  * @return The channel, or null if this channel doesn't exist. (The local user is not in that
  *     channel)
  * @see #getChannel(String)
  */
 protected Channel getChannel(final Channel channel) {
   return this.getChannel(channel.getName());
 }
Ejemplo n.º 2
0
 /**
  * Adds a channel to the channel list.
  *
  * @param channel The channel to add.
  */
 protected void addChannel(final Channel channel) {
   if (!this.channels.containsKey(channel.getName())) {
     this.channels.put(channel.getName(), channel);
   }
 }