changeset 536:09280dd0b22e

mod_register_json: replaced prosody.events.add_handler with module:hook.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 08 Jan 2012 03:53:09 +0000
parents 39c7115be370
children 50be30f203f3
files mod_register_json/mod_register_json.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_json/mod_register_json.lua	Sun Jan 08 03:52:38 2012 +0000
+++ b/mod_register_json/mod_register_json.lua	Sun Jan 08 03:53:09 2012 +0000
@@ -138,5 +138,5 @@
 if prosody.start_time then -- already started
 	setup()
 else
-	prosody.events.add_handler("server-started", setup)
+	module:hook("server-started", setup)
 end