From 6221ed58afee8e9a7c212e1f545b08186d526f70 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 8 May 2009 01:04:51 +0500 Subject: mod_roster: Advertize roster versioning support --- plugins/mod_roster.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index e30bc1f9..554ef2e5 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -23,6 +23,14 @@ local core_route_stanza = core_route_stanza; module:add_feature("jabber:iq:roster"); +local rosterver_stream_feature = st.stanza("ver", {xmlns="urn:xmpp:features:rosterver"}):tag("optional"):up(); +module:add_event_hook("stream-features", + function (session, features) + if session.username then + features:add_child(rosterver_stream_feature); + end + end); + module:add_iq_handler("c2s", "jabber:iq:roster", function (session, stanza) if stanza.tags[1].name == "query" then -- cgit v1.2.3