diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-03 13:53:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-03 13:53:21 +0100 |
commit | a5ccb8a860924f48570242e468267885137e3e9a (patch) | |
tree | bf22e9f39d9ccaa98ba9f214cfa01d7c3408d46a /util/helpers.lua | |
parent | 1ea4d9ab7bde60b904192718247d49aa1337a18e (diff) | |
parent | 1728207c6bb7f3955535ba4a2c1c6fde8e624ed8 (diff) | |
download | prosody-a5ccb8a860924f48570242e468267885137e3e9a.tar.gz prosody-a5ccb8a860924f48570242e468267885137e3e9a.zip |
Merge 0.9->trunk
Diffstat (limited to 'util/helpers.lua')
-rw-r--r-- | util/helpers.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/helpers.lua b/util/helpers.lua index 6103a319..08b86a7c 100644 --- a/util/helpers.lua +++ b/util/helpers.lua @@ -14,6 +14,14 @@ module("helpers", package.seeall); 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 |