Changeset

592:f9c73c1249cd

Update smacks to urn:xmpp:sm:3. Fix typo in can_do_smacks.
author Thijs Alkemade <thijsalkemade@gmail.com>
date Thu, 02 Feb 2012 01:23:00 +0100
parents 591:36003cae2370
children 593:db2a40cbd6ef
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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