Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 8967:c809f334363c
mod_pep: Remove unused variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jul 2018 00:06:00 +0200 |
parent | 8966:9106e9286203 |
comparison
equal
deleted
inserted
replaced
8966:9106e9286203 | 8967:c809f334363c |
---|---|
313 end | 313 end |
314 end | 314 end |
315 end); | 315 end); |
316 | 316 |
317 module:hook("account-disco-info-node", function (event) | 317 module:hook("account-disco-info-node", function (event) |
318 local session, stanza, node = event.origin, event.stanza, event.node; | 318 local stanza, node = event.stanza, event.node; |
319 local user = stanza.attr.to; | 319 local user = stanza.attr.to; |
320 local user_data = data[user]; | 320 local user_data = data[user]; |
321 if user_data and user_data[node] then | 321 if user_data and user_data[node] then |
322 event.exists = true; | 322 event.exists = true; |
323 event.reply:tag('identity', {category='pubsub', type='leaf'}):up(); | 323 event.reply:tag('identity', {category='pubsub', type='leaf'}):up(); |