Channel getChannelByName(String cname) {
        boolean returned = false;
        for (Channel c: channels) {
            if (c.getName().equals(cname)) {
                returned = true;
                return c;
            }
        }


        Channel newc = new Channel(cname);
        channels.add(newc);
        return newc;
    }