Comparison

plugins/adhoc/mod_adhoc.lua @ 8460:77e59f8057bf

mod_adhoc: Rename variable to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 05 Dec 2017 12:32:51 +0100
parent 6841:be87ab2d611c
child 8563:50f2ad088589
comparison
equal deleted inserted replaced
8459:84c117cdd048 8460:77e59f8057bf
43 event.exists = true; 43 event.exists = true;
44 end 44 end
45 end); 45 end);
46 46
47 module:hook("host-disco-items-node", function (event) 47 module:hook("host-disco-items-node", function (event)
48 local stanza, origin, reply, node = event.stanza, event.origin, event.reply, event.node; 48 local stanza, origin, reply, disco_node = event.stanza, event.origin, event.reply, event.node;
49 if node ~= xmlns_cmd then 49 if disco_node ~= xmlns_cmd then
50 return; 50 return;
51 end 51 end
52 52
53 local from = stanza.attr.from; 53 local from = stanza.attr.from;
54 local admin = is_admin(from, stanza.attr.to); 54 local admin = is_admin(from, stanza.attr.to);