Diff

util/helpers.lua @ 5420:706053e3f9f5

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Apr 2013 13:53:21 +0100
parent 5415:9e7aa5b47bdf
child 5776:bd0ff8ae98a8
line wrap: on
line diff
--- a/util/helpers.lua	Sun Mar 31 13:21:19 2013 +0100
+++ b/util/helpers.lua	Wed Apr 03 13:53:21 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