diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-05-12 18:45:30 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-05-12 18:45:30 +0100 |
commit | 6e9ced38abe48ef15310ccc0d1fa93530e217cca (patch) | |
tree | bf03bc29e2ae7d3acd6cdefba7647da3234f9b7f | |
parent | b919112a2e1e1ce92a6abb073ec56cda2b6afb8e (diff) | |
download | prosody-6e9ced38abe48ef15310ccc0d1fa93530e217cca.tar.gz prosody-6e9ced38abe48ef15310ccc0d1fa93530e217cca.zip |
util.events: Fix comparison of event_name with nil instead of false (fixes #554)
-rw-r--r-- | util/events.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/events.lua b/util/events.lua index 073d2a60..e2943e44 100644 --- a/util/events.lua +++ b/util/events.lua @@ -131,7 +131,7 @@ local function new() end end if #w == 0 then - if event_name == nil then + if event_name == false then global_wrappers = nil; else wrappers[event_name] = nil; |