Comparison

plugins/mod_roster.lua @ 4265:d56c26c258e4

mod_roster: Remove <optional/> from roster version stream feature, as per latest specs.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 07 May 2011 21:16:25 +0500
parent 3540:bc139431830b
child 5013:ab693eea0869
comparison
equal deleted inserted replaced
4264:fa36e749749c 4265:d56c26c258e4
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 = 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"}):tag("optional"):up(); 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)
27 local origin, features = event.origin, event.features; 27 local origin, features = event.origin, event.features;
28 if origin.username then 28 if origin.username then
29 features:add_child(rosterver_stream_feature); 29 features:add_child(rosterver_stream_feature);
30 end 30 end