plus: remove handler once it has been consumed

This commit is contained in:
dece 2022-09-02 11:33:14 +02:00
parent d10ef6e8b7
commit e05d367f12

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)