diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-09-20 03:20:38 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-09-20 03:20:38 +0100 |
commit | e857dbd1c9106e5081b2b78a52cdf8855dadf7fd (patch) | |
tree | c4d082512b3afcefe436c3b29e048b8778c8da3b /util/helpers.lua | |
parent | 1c92cd5b147a33c0d1abc6bd435b90356f7d6d03 (diff) | |
download | prosody-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/helpers.lua')
-rw-r--r-- | util/helpers.lua | 1 |
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; |