aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commitc98f87b4a77b152e7abb8a95402f1292ac937ebc (patch)
treefcf17547c6154a81299f9369efe523ef85b4da37 /util
parentb3965a9069b88e0e39cb7b5a5a62850807511f58 (diff)
downloadprosody-c98f87b4a77b152e7abb8a95402f1292ac937ebc.tar.gz
prosody-c98f87b4a77b152e7abb8a95402f1292ac937ebc.zip
util.events: Change from nil to false to indicate adding a global wrapper
Diffstat (limited to 'util')
-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];