mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-30 17:29:26 +00:00
Merge pull request #315 from ZoiteChat/python-script-compatibility-fix
Snapshot Python hooks during plugin unload
This commit is contained in:
@@ -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