Mercurial > prosody-hg
comparison plugins/mod_roster.lua @ 5372:676e3cf0e565
mod_roster: Remove unused variable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Mar 2013 01:35:52 +0100 |
| parents | 39eb688e106a |
| children | bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
| 5371:706206e191e8 | 5372:676e3cf0e565 |
|---|---|
| 67 and query.tags[1].attr.xmlns == "jabber:iq:roster" and query.tags[1].attr.jid | 67 and query.tags[1].attr.xmlns == "jabber:iq:roster" and query.tags[1].attr.jid |
| 68 -- Protection against overwriting roster.pending, until we move it | 68 -- Protection against overwriting roster.pending, until we move it |
| 69 and query.tags[1].attr.jid ~= "pending" then | 69 and query.tags[1].attr.jid ~= "pending" then |
| 70 local item = query.tags[1]; | 70 local item = query.tags[1]; |
| 71 local from_node, from_host = jid_split(stanza.attr.from); | 71 local from_node, from_host = jid_split(stanza.attr.from); |
| 72 local from_bare = from_node and (from_node.."@"..from_host) or from_host; -- bare JID | |
| 73 local jid = jid_prep(item.attr.jid); | 72 local jid = jid_prep(item.attr.jid); |
| 74 local node, host, resource = jid_split(jid); | 73 local node, host, resource = jid_split(jid); |
| 75 if not resource and host then | 74 if not resource and host then |
| 76 if jid ~= from_node.."@"..from_host then | 75 if jid ~= from_node.."@"..from_host then |
| 77 if item.attr.subscription == "remove" then | 76 if item.attr.subscription == "remove" then |
