From 661bbfa03b671a51cd06777e271eaf6ce8502a28 Mon Sep 17 00:00:00 2001 From: David Alexander Date: Wed, 20 Nov 2019 10:00:13 -0500 Subject: [PATCH] Adds alias for "unclaim": "cancel" (Fixes #168) --- CHANGELOG.md | 1 + tor/core/inbox.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69e89aba..c6afbf3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Replaces `setup.py` with Poetry tooling for development and packaging ease - Fixes no-author condition if the mods message the bot +- Adds `cancel` as an alias for `unclaim` for user directives to the bot ## [3.11.2] - 2019-09-14 diff --git a/tor/core/inbox.py b/tor/core/inbox.py index 13cc04d3..21d97fb0 100644 --- a/tor/core/inbox.py +++ b/tor/core/inbox.py @@ -95,7 +95,7 @@ def process_reply(reply, cfg): reply.mark_read() return - if 'unclaim' in r_body: + if 'unclaim' in r_body or 'cancel' in r_body: process_unclaim(reply, cfg) reply.mark_read() return