From 412d75439934201968a701abc043abc63f802dba Mon Sep 17 00:00:00 2001 From: Ritabrata Das Date: Wed, 19 Feb 2025 21:40:54 +0530 Subject: Fix critical bug in smoke plugin --- lib/plugin_manager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/plugin_manager.py b/lib/plugin_manager.py index ae4cf0b..07e28e6 100644 --- a/lib/plugin_manager.py +++ b/lib/plugin_manager.py @@ -62,8 +62,11 @@ class PluginManager: if hook_name in self.hooks: for callback in self.hooks[hook_name]: keep = callback(data, *args, **kwargs) - if keep == False: - keep_orignal = False + if type(keep) == bool: + if keep == False: + keep_orignal = False + else: + warning(f"Return value of {callback} is not a boolean") return keep_orignal def trigger_command(self, command:str, player, full_message:str, message_to_client:list, message_to_server:list): -- cgit v1.2.3