public User getUser(String nick, String login, String hostname) {
        for(User user : users) {
            if(user.nick.equals(nick) && user.login.equals(login) && user.hostname.equals(hostname)) {
                return user;
            }
        }
        return null;
    }