Diff

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
line wrap: on
line diff
--- a/component.lua	Tue May 23 19:46:52 2023 +0200
+++ b/component.lua	Sat May 20 20:48:03 2023 +0200
@@ -1,15 +1,15 @@
 local verse = require "verse";
 local stream_mt = verse.stream_mt;
 
-local jid_split = require "util.jid".split;
-local st = require "util.stanza";
-local sha1 = require "util.hashes".sha1;
+local jid_split = require "prosody.util.jid".split;
+local st = require "prosody.util.stanza";
+local sha1 = require "prosody.util.hashes".sha1;
 
 -- Shortcuts to save having to load util.stanza
 verse.message, verse.presence, verse.iq, verse.stanza, verse.reply, verse.error_reply =
 	st.message, st.presence, st.iq, st.stanza, st.reply, st.error_reply;
 
-local new_xmpp_stream = require "util.xmppstream".new;
+local new_xmpp_stream = require "prosody.util.xmppstream".new;
 
 local xmlns_stream = "http://etherx.jabber.org/streams";
 local xmlns_component = "jabber:component:accept";