Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 9080:1b21f8ffaec8
mod_pep: Silence warnings about unused arguments [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 03 Aug 2018 17:15:42 +0200 |
| parents | aefb96a52f5f |
| children | 297a06074175 |
comparison
equal
deleted
inserted
replaced
| 9079:c040c358d6c0 | 9080:1b21f8ffaec8 |
|---|---|
| 38 | 38 |
| 39 function is_item_stanza(item) | 39 function is_item_stanza(item) |
| 40 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; | 40 return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item"; |
| 41 end | 41 end |
| 42 | 42 |
| 43 function check_node_config(node, actor, new_config) | 43 function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor |
| 44 if (new_config["max_items"] or 1) > max_max_items then | 44 if (new_config["max_items"] or 1) > max_max_items then |
| 45 return false; | 45 return false; |
| 46 end | 46 end |
| 47 end | 47 end |
| 48 | 48 |
