mod_host_guard: replaced prosody.events.add_handler with module:hook.
authorMarco Cirillo <maranda@lightwitch.org>
Sun, 08 Jan 2012 03:51:16 +0000
changeset 533 47b9053dba38
parent 532 967ba17b1d2a
child 534 3d6e0e037dab
mod_host_guard: replaced prosody.events.add_handler with module:hook.
mod_host_guard/mod_host_guard.lua
--- 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