public ServerThread(ChatServer chat){
        clientList = new ArrayList<>();
        channelList = new ArrayList<>();
        bannedList = new ArrayList<>();
        
        log = new Logger();
        seperator = System.getProperty("file.separator");
        
        log.writeLn("Creating directories for config files and logs");
        
        FileIO f = new FileIO("IRChat" + seperator + "conf", ".d", true); // make sure this directory is already created
        f.deleteFile();
        f = new FileIO("IRChat" + seperator + "logs", ".d", true); // make sure this directory is already created
        f.deleteFile();
        
        // look through directory to find list of channel config files
        getChannels();
        
        
        server = chat;
        
    }