2 local stream = verse.stream_mt; |
2 local stream = verse.stream_mt; |
3 |
3 |
4 local jid_split = require "jid".split; |
4 local jid_split = require "jid".split; |
5 local lxp = require "lxp"; |
5 local lxp = require "lxp"; |
6 local st = require "util.stanza"; |
6 local st = require "util.stanza"; |
|
7 |
|
8 -- Shortcuts to save having to load util.stanza |
|
9 verse.message, verse.presence, verse.iq, verse.stanza = |
|
10 st.message, st.presence, st.iq, st.stanza; |
|
11 |
7 local init_xmlhandlers = require "xmlhandlers"; |
12 local init_xmlhandlers = require "xmlhandlers"; |
8 |
13 |
9 local xmlns_stream = "http://etherx.jabber.org/streams"; |
14 local xmlns_stream = "http://etherx.jabber.org/streams"; |
10 |
15 |
11 local stream_callbacks = { stream_tag = xmlns_stream.."\1stream", |
16 local stream_callbacks = { stream_tag = xmlns_stream.."\1stream", |