Software /
code /
prosody-modules
Comparison
mod_rest/mod_rest.lua @ 4737:2bc5a0c0d8c3
mod_rest: Remove unused variable [luacheck]
Copied from core.stanza_router where it was probably used later in some
code not included in the copy.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Nov 2021 20:15:14 +0100 |
parent | 4735:58a20d5ac6e9 |
child | 4745:d29a295cd165 |
comparison
equal
deleted
inserted
replaced
4736:a938df1f60de | 4737:2bc5a0c0d8c3 |
---|---|
71 -- TODO This ought to be handled some way other than duplicating this | 71 -- TODO This ought to be handled some way other than duplicating this |
72 -- core.stanza_router code here. | 72 -- core.stanza_router code here. |
73 local function compat_preevents(origin, stanza) --> boolean : handled | 73 local function compat_preevents(origin, stanza) --> boolean : handled |
74 local to = stanza.attr.to; | 74 local to = stanza.attr.to; |
75 local node, host, resource = jid.split(to); | 75 local node, host, resource = jid.split(to); |
76 local to_bare = node and (node .. "@" .. host) or host; -- bare JID | |
77 | 76 |
78 local to_type, to_self; | 77 local to_type, to_self; |
79 if node then | 78 if node then |
80 if resource then | 79 if resource then |
81 to_type = '/full'; | 80 to_type = '/full'; |