public Channel returnChannel(String channel){
        for (int i=0;i<channelList.size();i++){
            if (channelList.get(i).getChannelName() == null ? channel == null : channelList.get(i).getChannelName().equals(channel)){
                return channelList.get(i);
            }
        }
        return null;
    }