comparison core/servermanager.lua @ 403:da92afa267cf

Merging with main branch.
author Tobias Markmann <tm@ayena.de>
date Sun, 23 Nov 2008 20:44:48 +0100
parents d97d59cfd1e8
children
comparison
equal deleted inserted replaced
402:50f1c09541cd 403:da92afa267cf
1 1
2 local st = require "util.stanza"; 2 local st = require "util.stanza";
3 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; 3 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
4 4
5 require "modulemanager" 5 local modulemanager = require "core.modulemanager";
6 6
7 -- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.) 7 -- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.)
8 function handle_stanza(origin, stanza) 8 function handle_stanza(origin, stanza)
9 -- Use plugins 9 -- Use plugins
10 if not modulemanager.handle_stanza(origin, stanza) then 10 if not modulemanager.handle_stanza(origin, stanza) then