232 end |
232 end |
233 |
233 |
234 -- And lock now... |
234 -- And lock now... |
235 prosody.lock_globals(); |
235 prosody.lock_globals(); |
236 |
236 |
|
237 prosody.start_time = os.time(); |
|
238 |
237 eventmanager.fire_event("server-started"); |
239 eventmanager.fire_event("server-started"); |
238 prosody.events.fire_event("server-started"); |
240 prosody.events.fire_event("server-started"); |
239 |
241 |
240 -- Error handler for errors that make it this far |
242 -- Error handler for errors that make it this far |
241 local function catch_uncaught_error(err) |
243 local function catch_uncaught_error(err) |