author | Matthew Wild <mwild1@gmail.com> |
Mon, 08 Apr 2013 15:04:55 +0100 | |
changeset 5443 | 92615cfa2270 |
parent 5441 | 6a5c622cc6d4 |
child 5444 | 30ab4e69a50d |
child 5445 | 9054b51e71a4 |
--- 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);