Mercurial > prosody-modules
comparison 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 |
parents | a881494238af |
children | ad40c094e7d7 |
comparison
equal
deleted
inserted
replaced
2304:a881494238af | 2305:7db4d3f5fb73 |
---|---|
270 return true; | 270 return true; |
271 end | 271 end |
272 | 272 |
273 module:log("debug", "Onions ready and loaded"); | 273 module:log("debug", "Onions ready and loaded"); |
274 | 274 |
275 hosts[module.host].events.add_handler("route/remote", route_to_onion, 200); | 275 module:hook("route/remote", route_to_onion, 200); |