Software /
code /
verse
Comparison
component.lua @ 490:6b2f31da9610
Update for new Prosody module namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 May 2023 20:48:03 +0200 |
parent | 485:c9a144591649 |
comparison
equal
deleted
inserted
replaced
489:39ed19f12dca | 490:6b2f31da9610 |
---|---|
1 local verse = require "verse"; | 1 local verse = require "verse"; |
2 local stream_mt = verse.stream_mt; | 2 local stream_mt = verse.stream_mt; |
3 | 3 |
4 local jid_split = require "util.jid".split; | 4 local jid_split = require "prosody.util.jid".split; |
5 local st = require "util.stanza"; | 5 local st = require "prosody.util.stanza"; |
6 local sha1 = require "util.hashes".sha1; | 6 local sha1 = require "prosody.util.hashes".sha1; |
7 | 7 |
8 -- Shortcuts to save having to load util.stanza | 8 -- Shortcuts to save having to load util.stanza |
9 verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, verse.error_reply = | 9 verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, verse.error_reply = |
10 st.message, st.presence, st.iq, st.stanza, st.reply, st.error_reply; | 10 st.message, st.presence, st.iq, st.stanza, st.reply, st.error_reply; |
11 | 11 |
12 local new_xmpp_stream = require "util.xmppstream".new; | 12 local new_xmpp_stream = require "prosody.util.xmppstream".new; |
13 | 13 |
14 local xmlns_stream = "http://etherx.jabber.org/streams"; | 14 local xmlns_stream = "http://etherx.jabber.org/streams"; |
15 local xmlns_component = "jabber:component:accept"; | 15 local xmlns_component = "jabber:component:accept"; |
16 | 16 |
17 local stream_callbacks = { | 17 local stream_callbacks = { |