mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.events: Fix comparison of event_name with nil instead of false (fixes #554)
This commit is contained in:
parent
47fb0705f6
commit
c3d3e85ce8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue