public void sendToChannel(String channel, String nickname, String msg){
        for (int i=0; i<channelList.size();i++){
            if (channelList.get(i).getChannelName().equals(channel)){
                //log.writeLn("[" + nickname + "]: " + msg);
                channelList.get(i).send("[" + nickname + "]: " + msg);
            }
        }
    }