Software / code / prosody-modules
Comparison
mod_support_contact/mod_support_contact.lua @ 777:e5413b66aeec
mod_support_contact: Use module:send()
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 05 Aug 2012 02:33:29 +0100 |
| parent | 100:999a4b3e699b |
| child | 986:8b1250df82e8 |
comparison
equal
deleted
inserted
replaced
| 776:841b5eb5fe52 | 777:e5413b66aeec |
|---|---|
| 41 roster = rostermanager.load_roster(node, host); | 41 roster = rostermanager.load_roster(node, host); |
| 42 roster[jid] = {subscription = "both", groups = groups}; | 42 roster[jid] = {subscription = "both", groups = groups}; |
| 43 rostermanager.save_roster(node, host, roster); | 43 rostermanager.save_roster(node, host, roster); |
| 44 rostermanager.roster_push(node, host, jid); | 44 rostermanager.roster_push(node, host, jid); |
| 45 else | 45 else |
| 46 core_post_stanza(hosts[event.host], st.presence({from=jid, to=support_contact, type="subscribe"})); | 46 module:send(st.presence({from=jid, to=support_contact, type="subscribe"})); |
| 47 end | 47 end |
| 48 end); | 48 end); |