Fri, 18 Mar 2011 21:46:33 +0000
plugins.smacks: Fix event priority and handling to make the code actually... work
plugins/smacks.lua | file | annotate | diff | comparison | revisions |
--- 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