# HG changeset patch # User Thijs Alkemade # Date 1328142180 -3600 # Node ID f9c73c1249cd6cfa5a5edb1da5949dac493ec833 # Parent 36003cae237071fd6874bb61dbef45e8362f936c Update smacks to urn:xmpp:sm:3. Fix typo in can_do_smacks. diff -r 36003cae2370 -r f9c73c1249cd mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Wed Feb 01 23:57:07 2012 +0000 +++ b/mod_smacks/mod_smacks.lua Thu Feb 02 01:23:00 2012 +0100 @@ -8,7 +8,7 @@ local add_filter = require "util.filters".add_filter; local timer = require "util.timer"; -local xmlns_sm = "urn:xmpp:sm:2"; +local xmlns_sm = "urn:xmpp:sm:3"; local xmlns_errors = "urn:ietf:params:xml:ns:xmpp-stanzas"; local sm_attr = { xmlns = xmlns_sm }; @@ -25,7 +25,7 @@ local session_type = session.type; if type == "c2s" then if not(advertise_only) and not(session.resource) then -- Fail unless we're only advertising sm - return false, "unexpected-request", "Client must bind a resource before enabling stream management"; end + return false, "unexpected-request", "Client must bind a resource before enabling stream management"; end return true; elseif s2s_smacks and (type == "s2sin" or type == "s2sout") then