From e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Aug 2018 17:48:41 +0200 Subject: MUC: Split long lines [luacheck strict] --- plugins/muc/whois.lib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/muc/whois.lib.lua') 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) -- cgit v1.2.3