]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
python: Fix API break in hook_timer()
authorPatrick <redacted>
Fri, 15 Apr 2022 18:43:22 +0000 (13:43 -0500)
committerGitHub <redacted>
Fri, 15 Apr 2022 18:43:22 +0000 (13:43 -0500)
Closes #2691

plugins/python/python.py

index 1adcde98865cbe9e6cb65a481b233ee5ee1c267d..0420a4e216547af02ee761ce1c5a4ad7e27c9455 100644 (file)
@@ -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