# HG changeset patch # User Matthew Wild # Date 1300484793 0 # Node ID 05d1a47512510c88922200b2241b127e5d18d6c9 # Parent 1fce24cb2c41f32d39d64e82665b1bbfa8997dfa plugins.smacks: Fix event priority and handling to make the code actually... work diff -r 1fce24cb2c41 -r 05d1a4751251 plugins/smacks.lua --- 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