summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-12-18 13:43:01 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-12-18 13:43:01 -0300
commit014b242df803089c34084de3d806a7c4e4dad75e (patch)
tree12dd5534a445fedc63b8219e48951bff0b3d2283 /plugins
parentd049be950cfaca6311b575890e81521d62db68d7 (diff)
parentbb7a03e9f68a775ca93dd6ad8ea61e4f1d2ba81b (diff)
Merge remote-tracking branch 'upstream/master' into default
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fishlim/fish.c2
-rw-r--r--plugins/python/python.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/fishlim/fish.c b/plugins/fishlim/fish.c
index 5a27e4cb..7fe7e287 100644
--- a/plugins/fishlim/fish.c
+++ b/plugins/fishlim/fish.c
@@ -91,7 +91,7 @@ static const signed char fish_unbase64[256] = {
 #include <openssl/provider.h>
 static OSSL_PROVIDER *legacy_provider;
 static OSSL_PROVIDER *default_provider;
-static OSSL_LIB_CTX* *ossl_ctx;
+static OSSL_LIB_CTX *ossl_ctx;
 #endif
 
 int fish_init(void)
diff --git a/plugins/python/python.py b/plugins/python/python.py
index 1adcde98..7a794784 100644
--- a/plugins/python/python.py
+++ b/plugins/python/python.py
@@ -146,8 +146,8 @@ class Plugin:
     def loadfile(self, filename):
         try:
             self.filename = filename
-            with open(filename, encoding='utf-8') as f:
-                data = f.read()
+            with open(filename, 'rb') as f:
+                data = f.read().decode('utf-8')
             compiled = compile_file(data, filename)
             exec(compiled, self.globals)
 
@@ -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