From 33dab48706bcc717a79de052f93c1c8ed03b146b Mon Sep 17 00:00:00 2001 From: dece Date: Fri, 2 Sep 2022 11:33:14 +0200 Subject: [PATCH] plus: remove handler once it has been consumed --- edmond/plugins/plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edmond/plugins/plus.py b/edmond/plugins/plus.py index a65a791..df6f37c 100644 --- a/edmond/plugins/plus.py +++ b/edmond/plugins/plus.py @@ -22,7 +22,7 @@ class PlusPlugin(Plugin): if not self.should_handle_command(event.arguments[0], no_content=True): return False - if handler := self.handlers.get(event.target): + if handler := self.handlers.pop(event.target, None): handler(event) else: self.signal_failure(event.target)