plugins/smacks.lua

changeset 202
05d1a4751251
parent 201
1fce24cb2c41
child 203
0f34520f4e26
--- a/plugins/smacks.lua	Fri Mar 18 21:42:49 2011 +0000
+++ b/plugins/smacks.lua	Fri Mar 18 21:46:33 2011 +0000
@@ -84,14 +84,14 @@
 			if stream.smacks and stream.bound then -- Already enabled in a previous session - resume
 				stream:send(verse.stanza("resume", { xmlns = xmlns_sm,
 					h = handled_stanza_count, previd = stream.resumption_token }));
+				return true;
 			else
-				stream:hook("bind-success", on_bind_success);
+				stream:hook("bind-success", on_bind_success, 1);
 			end
-			return true;
 		end
 	end
 
-	stream:hook("stream-features", on_features, 150);
+	stream:hook("stream-features", on_features, 250);
 	stream:hook("stream/"..xmlns_sm, handle_sm_command);
 	--stream:hook("ready", on_stream_ready, 500);
 end

mercurial