Software /
code /
verse
Changeset
202:05d1a4751251
plugins.smacks: Fix event priority and handling to make the code actually... work
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 18 Mar 2011 21:46:33 +0000 |
parents | 201:1fce24cb2c41 |
children | 203:0f34520f4e26 |
files | plugins/smacks.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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