plus: remove handler once it has been consumed

This commit is contained in:
dece 2022-09-02 11:33:14 +02:00
parent 95cc864474
commit 33dab48706

View file

@ -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)