diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-04-28 14:19:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-04-28 14:19:28 +0100 |
commit | c98f87b4a77b152e7abb8a95402f1292ac937ebc (patch) | |
tree | fcf17547c6154a81299f9369efe523ef85b4da37 | |
parent | b3965a9069b88e0e39cb7b5a5a62850807511f58 (diff) | |
download | prosody-c98f87b4a77b152e7abb8a95402f1292ac937ebc.tar.gz prosody-c98f87b4a77b152e7abb8a95402f1292ac937ebc.zip |
util.events: Change from nil to false to indicate adding a global wrapper
-rw-r--r-- | util/events.lua | 4 |
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]; |