comparison 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
parents 173c0e16e704
children e66d932eeb58
comparison
equal deleted inserted replaced
9080:1b21f8ffaec8 9081:ce57c69a20e2
22 room._data.whois = whois; 22 room._data.whois = whois;
23 return true; 23 return true;
24 end 24 end
25 25
26 module:hook("muc-disco#info", function(event) 26 module:hook("muc-disco#info", function(event)
27 event.reply:tag("feature", {var = get_whois(event.room) ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up(); 27 local whois = get_whois(event.room) ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous";
28 event.reply:tag("feature", { var = whois }):up();
28 end); 29 end);
29 30
30 module:hook("muc-config-form", function(event) 31 module:hook("muc-config-form", function(event)
31 local whois = get_whois(event.room); 32 local whois = get_whois(event.room);
32 table.insert(event.form, { 33 table.insert(event.form, {