Software / code / prosody
Comparison
core/componentmanager.lua @ 986:ebd94ad97b75
componentmanager: Set core_route_stanza after stanza_router is loaded
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 11 Apr 2009 23:23:35 +0100 |
| parent | 985:2ecd38c73b50 |
| child | 1004:0c3ea09d6d6e |
comparison
equal
deleted
inserted
replaced
| 985:2ecd38c73b50 | 986:ebd94ad97b75 |
|---|---|
| 31 end | 31 end |
| 32 return true; | 32 return true; |
| 33 end | 33 end |
| 34 end); | 34 end); |
| 35 | 35 |
| 36 require "core.eventmanager".add_event_hook("server-starting", function () core_route_stanza = _G.core_route_stanza; end); | |
| 36 | 37 |
| 37 module "componentmanager" | 38 module "componentmanager" |
| 38 | 39 |
| 39 local function default_component_handler(origin, stanza) | 40 local function default_component_handler(origin, stanza) |
| 40 log("warn", "Stanza being handled by default component, bouncing error"); | 41 log("warn", "Stanza being handled by default component, bouncing error"); |