diff options
-rw-r--r-- | plugins/mod_smacks.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index b3f6d189..6f257ba5 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -349,8 +349,6 @@ function handle_enable(session, stanza, xmlns_sm) return true; end - session.smacks = xmlns_sm; - (session.sends2s or session.send)(st.stanza("enabled", { xmlns = xmlns_sm; id = enabled.id; @@ -358,6 +356,7 @@ function handle_enable(session, stanza, xmlns_sm) max = enabled.resume_max; })); + session.smacks = xmlns_sm; enabled.finish(); return true; |