changeset 533:47b9053dba38

mod_host_guard: replaced prosody.events.add_handler with module:hook.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 08 Jan 2012 03:51:16 +0000
parents 967ba17b1d2a
children 3d6e0e037dab
files mod_host_guard/mod_host_guard.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_host_guard/mod_host_guard.lua	Sat Jan 07 18:14:14 2012 +0000
+++ b/mod_host_guard/mod_host_guard.lua	Sun Jan 08 03:51:16 2012 +0000
@@ -105,5 +105,5 @@
 if prosody.start_time then
 	setup()
 else
-	prosody.events.add_handler("server-started", setup)
+	module:hook ("server-started", setup)
 end