aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-18 23:08:21 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-18 23:08:21 +0000
commitd4f711759844179c2f3250b7b18f61aec11a2f6b (patch)
treee23545b8169153ea4d9d2ddf6de4d2b08d9fc3b6 /util/events.lua
parent344af756a0276b9a265665d958df952bb1cb74e8 (diff)
parent3909d249312c2bdaa69beb1410e577eabef387ce (diff)
downloadprosody-d4f711759844179c2f3250b7b18f61aec11a2f6b.tar.gz
prosody-d4f711759844179c2f3250b7b18f61aec11a2f6b.zip
Merge with Florob
Diffstat (limited to 'util/events.lua')
-rw-r--r--util/events.lua3
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)