Software /
code /
prosody
Diff
plugins/mod_component.lua @ 5013:ab693eea0869
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:33:17 +0200 |
parent | 4993:5243b74a4cbb |
child | 5059:246ba539a5cd |
line wrap: on
line diff
--- a/plugins/mod_component.lua Thu Jul 26 04:30:30 2012 +0200 +++ b/plugins/mod_component.lua Thu Jul 26 04:33:17 2012 +0200 @@ -18,6 +18,8 @@ local new_xmpp_stream = require "util.xmppstream".new; local uuid_gen = require "util.uuid".generate; +local core_process_stanza = prosody.core_process_stanza; + local log = module._log; @@ -169,8 +171,6 @@ session:close(); end -local core_process_stanza = core_process_stanza; - function stream_callbacks.handlestanza(session, stanza) -- Namespaces are icky. if not stanza.attr.xmlns and stanza.name == "handshake" then