diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-18 23:08:21 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-18 23:08:21 +0000 |
commit | d4f711759844179c2f3250b7b18f61aec11a2f6b (patch) | |
tree | e23545b8169153ea4d9d2ddf6de4d2b08d9fc3b6 /util | |
parent | 344af756a0276b9a265665d958df952bb1cb74e8 (diff) | |
parent | 3909d249312c2bdaa69beb1410e577eabef387ce (diff) | |
download | prosody-d4f711759844179c2f3250b7b18f61aec11a2f6b.tar.gz prosody-d4f711759844179c2f3250b7b18f61aec11a2f6b.zip |
Merge with Florob
Diffstat (limited to 'util')
-rw-r--r-- | util/events.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/events.lua b/util/events.lua index 8e05072d..412acccd 100644 --- a/util/events.lua +++ b/util/events.lua @@ -45,6 +45,9 @@ function new() if map then map[handler] = nil; handlers[event] = nil; + if next(map) == nil then + event_map[event] = nil; + end end end; local function add_handlers(handlers) |