aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-04-28 14:19:28 +0100
committerMatthew Wild <mwild1@gmail.com>2015-04-28 14:19:28 +0100
commit53e2d9e8a3d003eb3f3218f98335f8375bfcfb09 (patch)
treefcf17547c6154a81299f9369efe523ef85b4da37 /util/events.lua
parent5b4edd3877c2cb0e52320b98031f4096f30d4068 (diff)
downloadprosody-53e2d9e8a3d003eb3f3218f98335f8375bfcfb09.tar.gz
prosody-53e2d9e8a3d003eb3f3218f98335f8375bfcfb09.zip
util.events: Change from nil to false to indicate adding a global wrapper
Diffstat (limited to 'util/events.lua')
-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];