def get_skipregister(self, location=None):
        """Return true if the register command is disabled (for the given server.)
        """
        if location is None:
            return self.skipregister or not self.defaults.register
        else:
            server = self.defaults.servers[location]
            if self.skipregister:
                return True
            elif server.register is not None:
                if not self.defaults.register and self.get_skipupload():
                    return True # prevent override
                return not server.register
            elif not self.defaults.register:
                return True
            return False