# HG changeset patch # User Sonny Piers # Date 1327710276 -3600 # Node ID fc577e5b2f4aec5482385b63346376b7c021db78 # Parent 48bc65a0e0f18d8014e58199811f4d8291e0619f add pusbub config plugins diff --git a/plugins.js b/plugins.js --- a/plugins.js +++ b/plugins.js @@ -185,6 +185,16 @@ Lightstring.stanza.pubsub = { 'delete': function(aTo, aNode, aURI) { return ""; }, + config: function(aTo, aNode, aFields) { + var iq = ""; + if(aFields) { + aFields.forEach(function(field) { + iq += field; + }); + } + iq += ""; + return iq; + }, create: function(aTo, aNode, aFields) { var iq = ""; if(aFields) {