Software / code / prosody
Diff
plugins/mod_register.lua @ 5024:d25e1b9332cc
Merge with Florob
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 28 Jul 2012 01:14:31 +0100 |
| parent | 5014:b2006c1cfa85 |
| child | 5096:50a64fd79c07 |
line wrap: on
line diff
--- a/plugins/mod_register.lua Sat Jun 09 02:27:44 2012 +0200 +++ b/plugins/mod_register.lua Sat Jul 28 01:14:31 2012 +0100 @@ -120,10 +120,10 @@ for jid, item in pairs(roster) do if jid and jid ~= "pending" then if item.subscription == "both" or item.subscription == "from" or (roster.pending and roster.pending[jid]) then - core_post_stanza(hosts[host], st.presence({type="unsubscribed", from=bare, to=jid})); + module:send(st.presence({type="unsubscribed", from=bare, to=jid})); end if item.subscription == "both" or item.subscription == "to" or item.ask then - core_post_stanza(hosts[host], st.presence({type="unsubscribe", from=bare, to=jid})); + module:send(st.presence({type="unsubscribe", from=bare, to=jid})); end end end