Software /
code /
prosody
Changeset
6783:cd44427c7295
util.helpers: Fix order of functions using each other [fixes 00412b36166f]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 03 Mar 2015 20:27:35 +0100 |
parents | 6782:ec172dbe9d14 |
children | 6784:4da860edc27c |
files | util/helpers.lua |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/util/helpers.lua Mon Feb 23 12:04:43 2015 +0100 +++ b/util/helpers.lua Tue Mar 03 20:27:35 2015 +0100 @@ -12,14 +12,6 @@ local log = require "util.logger".init("util.debug"); -local function log_host_events(host) - return log_events(prosody.hosts[host].events, host); -end - -local function revert_log_host_events(host) - return revert_log_events(prosody.hosts[host].events); -end - local function log_events(events, name, logger) local f = events.fire_event; if not f then @@ -39,6 +31,14 @@ events.fire_event, events[events.fire_event] = events[events.fire_event], nil; -- :)) end +local function log_host_events(host) + return log_events(prosody.hosts[host].events, host); +end + +local function revert_log_host_events(host) + return revert_log_events(prosody.hosts[host].events); +end + local function show_events(events, specific_event) local event_handlers = events._handlers; local events_array = {};