Skip to content

Commit 564514a

Browse files
committed
Make sure to not sieve on_stop hooks
1 parent 8e5f0fb commit 564514a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def launch(self, hook, event):
445445
:rtype: bool
446446
"""
447447

448-
if hook.type not in ("on_start", "periodic"): # we don't need sieves on on_start hooks.
448+
if hook.type not in ("on_start", "on_stop", "periodic"): # we don't need sieves on on_start hooks.
449449
for sieve in self.bot.plugin_manager.sieves:
450450
event = yield from self._sieve(sieve, event, hook)
451451
if event is None:

0 commit comments

Comments
 (0)