aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-05-12 18:45:30 +0100
committerMatthew Wild <mwild1@gmail.com>2016-05-12 18:45:30 +0100
commit6e9ced38abe48ef15310ccc0d1fa93530e217cca (patch)
treebf03bc29e2ae7d3acd6cdefba7647da3234f9b7f
parentb919112a2e1e1ce92a6abb073ec56cda2b6afb8e (diff)
downloadprosody-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.lua2
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;