Software /
code /
prosody
Changeset
6662:5ef319efedba
rostermanager: Variable rename for clarity and to avoid name clash [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:17:59 +0100 |
parents | 6661:90e846e8a788 |
children | 6663:d3023dd07cb6 |
files | core/rostermanager.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/core/rostermanager.lua Wed May 06 19:16:16 2015 +0100 +++ b/core/rostermanager.lua Wed May 06 19:17:59 2015 +0100 @@ -213,10 +213,10 @@ function is_contact_subscribed(username, host, jid) do local selfjid = username.."@"..host; - local subscription = _get_online_roster_subscription(selfjid, jid); - if subscription then return (subscription == "both" or subscription == "from"); end - local subscription = _get_online_roster_subscription(jid, selfjid); - if subscription then return (subscription == "both" or subscription == "to"); end + local user_subscription = _get_online_roster_subscription(selfjid, jid); + if user_subscription then return (user_subscription == "both" or user_subscription == "from"); end + local contact_subscription = _get_online_roster_subscription(jid, selfjid); + if contact_subscription then return (contact_subscription == "both" or contact_subscription == "to"); end end local roster, err = load_roster(username, host); local item = roster[jid];