Mercurial > prosody-modules
changeset 2305:7db4d3f5fb73
mod_onions: Hook event using moduleapi
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 13:18:14 +0200 |
parents | a881494238af |
children | ad40c094e7d7 |
files | mod_onions/mod_onions.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_onions/mod_onions.lua Fri Sep 23 11:57:07 2016 +0200 +++ b/mod_onions/mod_onions.lua Fri Sep 23 13:18:14 2016 +0200 @@ -272,4 +272,4 @@ module:log("debug", "Onions ready and loaded"); -hosts[module.host].events.add_handler("route/remote", route_to_onion, 200); +module:hook("route/remote", route_to_onion, 200);