aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-20 03:20:38 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-20 03:20:38 +0100
commite857dbd1c9106e5081b2b78a52cdf8855dadf7fd (patch)
treec4d082512b3afcefe436c3b29e048b8778c8da3b /util
parent1c92cd5b147a33c0d1abc6bd435b90356f7d6d03 (diff)
downloadprosody-e857dbd1c9106e5081b2b78a52cdf8855dadf7fd.tar.gz
prosody-e857dbd1c9106e5081b2b78a52cdf8855dadf7fd.zip
util.helpers: It would be a good idea to fire an event when we say we are
Diffstat (limited to 'util')
-rw-r--r--util/helpers.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/helpers.lua b/util/helpers.lua
index 80f72b3b..c8434794 100644
--- a/util/helpers.lua
+++ b/util/helpers.lua
@@ -14,6 +14,7 @@ function log_events(events, name, logger)
name = name or tostring(events);
function events.fire_event(event, ...)
logger("debug", "%s firing event: %s", name, event);
+ return f(event, ...);
end
events[events.fire_event] = f;
return events;