diff options
author | Patrick <tingping@tingping.se> | 2022-04-15 13:43:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 13:43:22 -0500 |
commit | dd167b4c8393677f465c03d66b438d519c43fb87 (patch) | |
tree | d457cae3e640fe3a8688792ea5f25b3d9119927d /plugins | |
parent | 133f62806441a5db1156653aa1f077d2e8deeb34 (diff) |
python: Fix API break in hook_timer()
Closes #2691
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/python/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.py b/plugins/python/python.py index 1adcde98..0420a4e2 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -284,7 +284,7 @@ def _on_server_attrs_hook(word, word_eol, attrs, userdata): @ffi.def_extern() def _on_timer_hook(userdata): hook = ffi.from_handle(userdata) - if hook.callback(hook.userdata) is True: + if hook.callback(hook.userdata) == True: return 1 hook.is_unload = True # Don't unhook |