Software /
code /
prosody
Diff
plugins/mod_motd.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 | 9791:ca0473cadd1c |
line wrap: on
line diff
--- a/plugins/mod_motd.lua Fri Mar 17 18:03:07 2023 +0100 +++ b/plugins/mod_motd.lua Fri Mar 24 13:15:28 2023 +0100 @@ -13,7 +13,7 @@ if not motd_text then return; end -local st = require "util.stanza"; +local st = require "prosody.util.stanza"; motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n[ \t]+", "\n"); -- Strip indentation from the config