author | Matthew Wild <mwild1@gmail.com> |
Wed, 03 Apr 2013 13:39:00 +0100 | |
changeset 5415 | 9e7aa5b47bdf |
parent 5414 | efec29eb4cdd |
child 5416 | 0ba3a49d3863 |
util/helpers.lua | file | annotate | diff | comparison | revisions |
--- a/util/helpers.lua Wed Apr 03 13:38:27 2013 +0100 +++ b/util/helpers.lua Wed Apr 03 13:39:00 2013 +0100 @@ -14,6 +14,14 @@ local log = require "util.logger".init("util.debug"); +function log_host_events(host) + return log_events(prosody.hosts[host].events, host); +end + +function revert_log_host_events(host) + return revert_log_events(prosody.hosts[host].events); +end + function log_events(events, name, logger) local f = events.fire_event; if not f then