diff mod_host_guard/mod_host_guard.lua @ 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 1737c08fde30
children 50be30f203f3
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