Software /
code /
prosody
Changeset
12506:d04f6f014636
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 15 May 2022 23:22:33 +0200 |
parents | 12504:c589874fe348 (current diff) 12505:604bb5b8362d (diff) |
children | 12508:e6cfd0a6f0da |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Sun May 15 16:12:34 2022 +0200 +++ b/plugins/mod_admin_shell.lua Sun May 15 23:22:33 2022 +0200 @@ -50,12 +50,12 @@ end local function pre(prefix, str, alt) - if (str or "") == "" then return alt or ""; end + if type(str) ~= "string" or str == "" then return alt or ""; end return prefix .. str; end local function suf(str, suffix, alt) - if (str or "") == "" then return alt or ""; end + if type(str) ~= "string" or str == "" then return alt or ""; end return str .. suffix; end