@responder(pattern='^revoke (?P<user>.+)$', form='revoke <user>', help='Revoke authorization for a user (admin only)')
def revoke(conversation, user):
    if conversation.buddy != jabber_config.DEPUTY:
        conversation.say("Sorry, this command is only available to the environment administrator (%s)." % jabber_config.DEPUTY)
        return

    naughtyUser = Conversation.byName(user)
    if naughtyUser:
        conversation.say("Ok, I am revoking authorization for %s." % naughtyUser.buddy)
        naughtyUser.revokeAuthorization()
    else:
        conversation.say("There is no user by that name.")
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/responders/core.py/revoke/original