diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-03 17:48:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-03 17:48:41 +0200 |
commit | 9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529 (patch) | |
tree | 3b9d1d6d5cf093f004b3527c925b2df736476744 /plugins/muc/whois.lib.lua | |
parent | 4d70f3f2a9d3495c5be873298a995816fe8467ec (diff) | |
download | prosody-9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529.tar.gz prosody-9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529.zip |
MUC: Split long lines [luacheck strict]
Diffstat (limited to 'plugins/muc/whois.lib.lua')
-rw-r--r-- | plugins/muc/whois.lib.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/whois.lib.lua b/plugins/muc/whois.lib.lua index c81ff042..f3070ddf 100644 --- a/plugins/muc/whois.lib.lua +++ b/plugins/muc/whois.lib.lua @@ -24,7 +24,8 @@ local function set_whois(room, whois) end module:hook("muc-disco#info", function(event) - event.reply:tag("feature", {var = get_whois(event.room) ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up(); + local whois = get_whois(event.room) ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"; + event.reply:tag("feature", { var = whois }):up(); end); module:hook("muc-config-form", function(event) |