Diff

plugins/muc/whois.lib.lua @ 9081:ce57c69a20e2

MUC: Split long lines [luacheck strict]
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 17:48:41 +0200
parent 9035:173c0e16e704
child 9112:e66d932eeb58
line wrap: on
line diff
--- a/plugins/muc/whois.lib.lua	Fri Aug 03 17:15:42 2018 +0200
+++ b/plugins/muc/whois.lib.lua	Fri Aug 03 17:48:41 2018 +0200
@@ -24,7 +24,8 @@
 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)