Comparison

plugins/mod_pubsub.lua @ 5444:30ab4e69a50d

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Apr 2013 15:05:16 +0100
parent 5443:92615cfa2270
child 5445:9054b51e71a4
comparison
equal deleted inserted replaced
5442:e66973c81e89 5444:30ab4e69a50d
20 20
21 function handle_pubsub_iq(event) 21 function handle_pubsub_iq(event)
22 local origin, stanza = event.origin, event.stanza; 22 local origin, stanza = event.origin, event.stanza;
23 local pubsub = stanza.tags[1]; 23 local pubsub = stanza.tags[1];
24 local action = pubsub.tags[1]; 24 local action = pubsub.tags[1];
25 if not action then return; end
25 local handler = handlers[stanza.attr.type.."_"..action.name]; 26 local handler = handlers[stanza.attr.type.."_"..action.name];
26 if handler then 27 if handler then
27 handler(origin, stanza, action); 28 handler(origin, stanza, action);
28 return true; 29 return true;
29 end 30 end