Software /
code /
prosody
Changeset
6641:b44ebfe81c73
util.events: Change from nil to false to indicate adding a global wrapper
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 28 Apr 2015 14:19:28 +0100 |
parents | 6640:859e9af53aa1 |
children | 6642:113d321976b6 6651:deaa3d66dc2c |
files | util/events.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/events.lua Tue Apr 28 14:18:43 2015 +0100 +++ b/util/events.lua Tue Apr 28 14:19:28 2015 +0100 @@ -93,7 +93,7 @@ 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 @@ 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];