aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commitc3d3e85ce863511219b924e400ff0721747afc46 (patch)
treebf03bc29e2ae7d3acd6cdefba7647da3234f9b7f /util
parent47fb0705f697eef316c115ce1ad736951e31dd34 (diff)
downloadprosody-c3d3e85ce863511219b924e400ff0721747afc46.tar.gz
prosody-c3d3e85ce863511219b924e400ff0721747afc46.zip
util.events: Fix comparison of event_name with nil instead of false (fixes #554)
Diffstat (limited to 'util')
-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;