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 | 1213909d149d2ae2d697d6694ee1a30ef41c47f4 (patch) | |
tree | bf22e9f39d9ccaa98ba9f214cfa01d7c3408d46a /util/helpers.lua | |
parent | c8e37d89fdf5c9b5990cd309d53707f990986559 (diff) | |
parent | 64579702abbbb36676a94a86d88cc54c119f4433 (diff) | |
download | prosody-1213909d149d2ae2d697d6694ee1a30ef41c47f4.tar.gz prosody-1213909d149d2ae2d697d6694ee1a30ef41c47f4.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 |