Software / code / prosody-modules
Comparison
mod_auto_accept_subscriptions/mod_auto_accept_subscriptions.lua @ 776:841b5eb5fe52
mod_auto_accept_subscriptions: Import core_post_stanza
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 05 Aug 2012 02:32:17 +0100 |
| parent | 596:b1d82ae063e1 |
| child | 1343:7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
| 775:70ff25db37fa | 776:841b5eb5fe52 |
|---|---|
| 1 local rostermanager = require "core.rostermanager"; | 1 local rostermanager = require "core.rostermanager"; |
| 2 local jid = require "util.jid"; | 2 local jid = require "util.jid"; |
| 3 local st = require "util.stanza"; | 3 local st = require "util.stanza"; |
| 4 local core_post_stanza = prosody.core_post_stanza; | |
| 4 | 5 |
| 5 local function handle_inbound_subscription_request(origin, stanza) | 6 local function handle_inbound_subscription_request(origin, stanza) |
| 6 local to_bare, from_bare = jid.bare(stanza.attr.to), jid.bare(stanza.attr.from); | 7 local to_bare, from_bare = jid.bare(stanza.attr.to), jid.bare(stanza.attr.from); |
| 7 local node, host = jid.split(to_bare); | 8 local node, host = jid.split(to_bare); |
| 8 stanza.attr.from, stanza.attr.to = from_bare, to_bare; | 9 stanza.attr.from, stanza.attr.to = from_bare, to_bare; |