Client getClientByName(String name){
        ArrayList < Client > tclients = new ArrayList < Client > ();
        tclients.addAll(clients);
        for (int i = 0; i < channels.size(); i++) {
            ArrayList < Client > clients = channels.get(i).getUsers();
            for (Client c: clients) {
                if (!(tclients.contains(c))) {
                    tclients.add(c);
                }
            }
        }
        for(Client c: tclients){
        	if(c.getName().equals(name)){
        		return c;
        	}
        }
        
        return null;
    }