aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-08 15:04:55 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-08 15:04:55 +0100
commitb026f94410817b6927769c5fd410d3e98b326091 (patch)
tree1b593804084acf9148f1016283a985ef04bd52c2
parent8e477e369ae77744e0e087f8fb644e370cfc7e25 (diff)
downloadprosody-b026f94410817b6927769c5fd410d3e98b326091.tar.gz
prosody-b026f94410817b6927769c5fd410d3e98b326091.zip
mod_pubsub: Don't attempt to handle iq stanzas with no action element
-rw-r--r--plugins/mod_pubsub.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index 5ff3a029..8f078f54 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -22,6 +22,7 @@ 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
local handler = handlers[stanza.attr.type.."_"..action.name];
if handler then
handler(origin, stanza, action);