Software /
code /
prosody
Comparison
plugins/mod_roster.lua @ 5013:ab693eea0869
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:33:17 +0200 |
parent | 4265:d56c26c258e4 |
child | 5099:39eb688e106a |
comparison
equal
deleted
inserted
replaced
5012:d59c842fe38e | 5013:ab693eea0869 |
---|---|
16 local pairs, ipairs = pairs, ipairs; | 16 local pairs, ipairs = pairs, ipairs; |
17 | 17 |
18 local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; | 18 local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; |
19 local rm_add_to_roster = require "core.rostermanager".add_to_roster; | 19 local rm_add_to_roster = require "core.rostermanager".add_to_roster; |
20 local rm_roster_push = require "core.rostermanager".roster_push; | 20 local rm_roster_push = require "core.rostermanager".roster_push; |
21 local core_post_stanza = core_post_stanza; | 21 local core_post_stanza = prosody.core_post_stanza; |
22 | 22 |
23 module:add_feature("jabber:iq:roster"); | 23 module:add_feature("jabber:iq:roster"); |
24 | 24 |
25 local rosterver_stream_feature = st.stanza("ver", {xmlns="urn:xmpp:features:rosterver"}); | 25 local rosterver_stream_feature = st.stanza("ver", {xmlns="urn:xmpp:features:rosterver"}); |
26 module:hook("stream-features", function(event) | 26 module:hook("stream-features", function(event) |