Mercurial > prosody-modules
diff mod_muc_ban_ip/mod_muc_ban_ip.lua @ 4323:a7a06c8cea37
mod_muc_ban_ip: Lua is not C, fix typo
author | Georg Lukas <georg@op-co.de> |
---|---|
date | Mon, 11 Jan 2021 16:11:08 +0100 |
parents | 71498f484c22 |
children | 47d9f704d14b |
line wrap: on
line diff
--- a/mod_muc_ban_ip/mod_muc_ban_ip.lua Wed Jan 06 20:49:45 2021 +0100 +++ b/mod_muc_ban_ip/mod_muc_ban_ip.lua Mon Jan 11 16:11:08 2021 +0100 @@ -48,7 +48,7 @@ local to = jid_bare(stanza.attr.to); if ip_bans[ip] and ip_bans[ip][to] then (origin.log or module._log)("debug", "IP banned: %s is banned from %s", ip, to) - if stanza.attr.type != "error" then + if stanza.attr.type ~= "error" then origin.send(st.error_reply(stanza, "auth", "forbidden") :tag("x", { xmlns = xmlns_muc_user }) :tag("status", { code = '301' }));