mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-04 07:45:56 +00:00
Snapshot Python hooks during plugin unload
This commit is contained in:
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user