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 | e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1 (patch) | |
tree | 3b9d1d6d5cf093f004b3527c925b2df736476744 /plugins/muc/whois.lib.lua | |
parent | 4e91846a0bcb35d7c586397c1d3e96147b2bae5f (diff) | |
download | prosody-e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1.tar.gz prosody-e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1.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) |