Changeset

5444:30ab4e69a50d

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Apr 2013 15:05:16 +0100
parents 5442:e66973c81e89 (current diff) 5443:92615cfa2270 (diff)
children 5446:51686426cac2
files
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Mon Apr 08 12:08:34 2013 +0100
+++ b/plugins/mod_pubsub.lua	Mon Apr 08 15:05:16 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);