def __call__(self, fCallback):
        uid_key = self.uid_key
        def exist_user_and_call(self, *args, **kwargs):
            opts = args[1]
            uid = getattr(opts, uid_key)

            if self.pb['router'].getUser(uid) is not None:
                return fCallback(self, *args, **kwargs)

            return self.protocol.sendData('Unknown User: %s' % uid)
        return exist_user_and_call
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/usersm.py/UserExist.__call__/original