Merge 0.9->trunk
authorMatthew Wild <mwild1@gmail.com>
Mon, 8 Apr 2013 14:32:51 +0000 (15:32 +0100)
committerMatthew Wild <mwild1@gmail.com>
Mon, 8 Apr 2013 14:32:51 +0000 (15:32 +0100)
plugins/mod_pubsub.lua

index 8f078f54fbd075fe06945d190b1731b56523ebf6..7bd331029a59ac37b095efe4ee189d9f9b7b92f2 100644 (file)
@@ -22,7 +22,9 @@ function handle_pubsub_iq(event)
        local origin, stanza = event.origin, event.stanza;
        local pubsub = stanza.tags[1];
        local action = pubsub.tags[1];
-       if not action then return; end
+       if not action then
+               return origin.send(st.error_reply(stanza, "cancel", "bad-request"));
+       end
        local handler = handlers[stanza.attr.type.."_"..action.name];
        if handler then
                handler(origin, stanza, action);