Software /
code /
prosody
Diff
plugins/mod_announce.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 12642:9061f9621330 |
line wrap: on
line diff
--- a/plugins/mod_announce.lua Fri Mar 17 18:03:07 2023 +0100 +++ b/plugins/mod_announce.lua Fri Mar 24 13:15:28 2023 +0100 @@ -6,7 +6,7 @@ -- COPYING file in the source package for more information. -- -local st, jid = require "util.stanza", require "util.jid"; +local st, jid = require "prosody.util.stanza", require "prosody.util.jid"; local hosts = prosody.hosts; @@ -63,7 +63,7 @@ module:hook("message/host", handle_announcement); -- Ad-hoc command (XEP-0133) -local dataforms_new = require "util.dataforms".new; +local dataforms_new = require "prosody.util.dataforms".new; local announce_layout = dataforms_new{ title = "Making an Announcement"; instructions = "Fill out this form to make an announcement to all\nactive users of this service.";