aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/events.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/events.lua b/util/events.lua
index d5a7359c..79de1151 100644
--- a/util/events.lua
+++ b/util/events.lua
@@ -93,7 +93,7 @@ function new()
end
local function add_wrapper(event_name, wrapper)
local w;
- if event_name == nil then
+ if event_name == false then
w = global_wrappers;
if not w then
w = {};
@@ -110,7 +110,7 @@ function new()
end
local function remove_wrapper(event_name, wrapper)
local w;
- if event_name == nil then
+ if event_name == false then
w = global_wrappers;
else
w = wrappers[event_name];