Merge pull request #315 from ZoiteChat/python-script-compatibility-fix

Snapshot Python hooks during plugin unload
This commit is contained in:
deepend-tildeclub
2026-06-29 20:41:00 -06:00
committed by GitHub

View File

@@ -173,7 +173,7 @@ class Plugin:
def __del__(self):
log('unloading', self.filename)
for hook in self.hooks:
for hook in list(self.hooks):
if hook.is_unload is True:
try:
hook.callback(hook.userdata)