Merge 0.10->trunk
[prosody.git] / plugins / mod_carbons.lua
index 9b94d58dd044c179634de750ef3f98631530fe16..9ef14713553bf3fa7e60c38ef0853b7f88216807 100644 (file)
@@ -14,7 +14,8 @@ local function toggle_carbons(event)
        local state = stanza.tags[1].name;
        module:log("debug", "%s %sd carbons", origin.full_jid, state);
        origin.want_carbons = state == "enable" and stanza.tags[1].attr.xmlns;
-       return origin.send(st.reply(stanza));
+       origin.send(st.reply(stanza));
+       return true;
 end
 module:hook("iq-set/self/"..xmlns_carbons..":disable", toggle_carbons);
 module:hook("iq-set/self/"..xmlns_carbons..":enable", toggle_carbons);