Software /
code /
prosody-modules
Diff
mod_onions/mod_onions.lua @ 2305:7db4d3f5fb73
mod_onions: Hook event using moduleapi
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 13:18:14 +0200 |
parent | 2304:a881494238af |
child | 2306:ad40c094e7d7 |
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);