Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 8891:d9b7db6f140f
MUC: Ignore unused 'self' [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jun 2018 17:15:27 +0200 |
parent | 8888:cbcac5b9b7ce |
child | 8912:43806beda970 |
comparison
equal
deleted
inserted
replaced
8890:3490bc478804 | 8891:d9b7db6f140f |
---|---|
350 module:hook("muc-disco#info", function(event) | 350 module:hook("muc-disco#info", function(event) |
351 table.insert(event.form, { name = "muc#roominfo_occupants", label = "Number of occupants" }); | 351 table.insert(event.form, { name = "muc#roominfo_occupants", label = "Number of occupants" }); |
352 event.formdata["muc#roominfo_occupants"] = tostring(iterators.count(event.room:each_occupant())); | 352 event.formdata["muc#roominfo_occupants"] = tostring(iterators.count(event.room:each_occupant())); |
353 end); | 353 end); |
354 | 354 |
355 function room_mt:get_disco_items(stanza) | 355 function room_mt:get_disco_items(stanza) -- luacheck: ignore 212 |
356 return st.reply(stanza):query("http://jabber.org/protocol/disco#items"); | 356 return st.reply(stanza):query("http://jabber.org/protocol/disco#items"); |
357 end | 357 end |
358 | 358 |
359 function room_mt:handle_kickable(origin, stanza) -- luacheck: ignore 212 | 359 function room_mt:handle_kickable(origin, stanza) -- luacheck: ignore 212 |
360 local real_jid = stanza.attr.from; | 360 local real_jid = stanza.attr.from; |