summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPatrick <tingping@tingping.se>2022-04-15 13:43:22 -0500
committerGitHub <noreply@github.com>2022-04-15 13:43:22 -0500
commitdd167b4c8393677f465c03d66b438d519c43fb87 (patch)
treed457cae3e640fe3a8688792ea5f25b3d9119927d
parent133f62806441a5db1156653aa1f077d2e8deeb34 (diff)
python: Fix API break in hook_timer()
Closes #2691
-rw-r--r--plugins/python/python.py2
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