Software /
code /
prosody
Changeset
5443:92615cfa2270
mod_pubsub: Don't attempt to handle iq stanzas with no action element
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 15:04:55 +0100 |
parents | 5441:6a5c622cc6d4 |
children | 5444:30ab4e69a50d 5445:9054b51e71a4 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua Sun Apr 07 20:28:12 2013 +0100 +++ b/plugins/mod_pubsub.lua Mon Apr 08 15:04:55 2013 +0100 @@ -22,6 +22,7 @@ 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);