Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
535:39c7115be370 | 536:09280dd0b22e |
---|---|
136 end | 136 end |
137 | 137 |
138 if prosody.start_time then -- already started | 138 if prosody.start_time then -- already started |
139 setup() | 139 setup() |
140 else | 140 else |
141 prosody.events.add_handler("server-started", setup) | 141 module:hook("server-started", setup) |
142 end | 142 end |