public boolean isChannelOpen(String channel){
  return openChannels.contains(channel);
}

public boolean isChannelOpen ( String channel ) { return openChannels . contains ( channel ) ; }
checks if the given channel should be open .
