projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
9f78eb4
)
Merge 0.9->trunk
author
Matthew Wild
<mwild1@gmail.com>
Mon, 8 Apr 2013 14:32:51 +0000
(15:32 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 8 Apr 2013 14:32:51 +0000
(15:32 +0100)
plugins/mod_pubsub.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_pubsub.lua
b/plugins/mod_pubsub.lua
index 8f078f54fbd075fe06945d190b1731b56523ebf6..7bd331029a59ac37b095efe4ee189d9f9b7b92f2 100644
(file)
--- a/
plugins/mod_pubsub.lua
+++ b/
plugins/mod_pubsub.lua
@@
-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);