Mercurial > prosody-hg
comparison plugins/mod_pep_plus.lua @ 8315:967f04fe7fd4
mod_pep_plus: Add missing variable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 09 Oct 2017 13:45:53 +0200 |
| parents | 94860b5733d3 |
| children | d0a7fc7614de |
comparison
equal
deleted
inserted
replaced
| 8314:1d2149d84c72 | 8315:967f04fe7fd4 |
|---|---|
| 357 return; | 357 return; |
| 358 end | 358 end |
| 359 | 359 |
| 360 -- Process disco response | 360 -- Process disco response |
| 361 local is_self = stanza.attr.to == nil; | 361 local is_self = stanza.attr.to == nil; |
| 362 local user_bare = jid_bare(stanza.attr.to); | |
| 362 local username = jid_split(stanza.attr.to); | 363 local username = jid_split(stanza.attr.to); |
| 363 if is_self then | 364 if is_self then |
| 364 username = origin.username; | 365 username = origin.username; |
| 366 user_bare = jid_join(username, host); | |
| 365 end | 367 end |
| 366 local contact = stanza.attr.from; | 368 local contact = stanza.attr.from; |
| 367 local current = recipients[username] and recipients[username][contact]; | 369 local current = recipients[username] and recipients[username][contact]; |
| 368 if type(current) ~= "string" then return; end -- check if waiting for recipient's response | 370 if type(current) ~= "string" then return; end -- check if waiting for recipient's response |
| 369 local ver = current; | 371 local ver = current; |
