Diff

mod_register_json/mod_register_json.lua @ 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
parent 529:84e992f70ba3
child 548:4691e72a055c
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