# HG changeset patch # User Sonny Piers # Date 1300721414 -3600 # Node ID 296de54c1c4bc4a2743dea718be72567c638f664 # Parent 22b06eade9a70b83c10abc8f311b1a2bbda6489d Rollback last commit error and fix typo error. diff -r 22b06eade9a7 -r 296de54c1c4b configuration.js --- a/configuration.js Mon Mar 21 15:40:32 2011 +0100 +++ b/configuration.js Mon Mar 21 16:30:14 2011 +0100 @@ -21,14 +21,14 @@ var config = exports; -config.jid = 'pubsub.plugsbee.com'; -config.password = 'douzeetdouzefont1212'; +config.jid = 'pubsub.example.org'; +config.password = 'hellohello'; config.host = 'localhost'; config.port = 5347; -config.superOwner = ['sonny@plugsbee.com']; +config.superOwner = ['you@example.com']; config.version = '0.1'; config.os = 'GNU/Linux'; -config.allowCreateNode = [/(.*)/]; +config.allowCreateNode = [/@example\.com$/]; // value is an array of RegExp JIDs. If only super-owner should be able to create nodes, use []. config.backend = 'directory'; // Put backends in “backends” directory. config.access = 'open'; // values include open, whitelist (by members) and authorize (owners of the node receive notification). presence and roster aren’t implemented yet. config.pluginsDir = 'modules'; diff -r 22b06eade9a7 -r 296de54c1c4b modules/mod_disco.js --- a/modules/mod_disco.js Mon Mar 21 15:40:32 2011 +0100 +++ b/modules/mod_disco.js Mon Mar 21 16:30:14 2011 +0100 @@ -112,8 +112,6 @@ var metadata = storage.getMetadata(nodeID); if (metadata['pubsub#title']) attr.name = metadata['pubsub#title']; - if (metadata['pubsub#creator']) - attr.creator = metadata['pubsub#creator']; if (config.hideNonAccessibleNodes) { var configuration = storage.getConfiguration(nodeID); diff -r 22b06eade9a7 -r 296de54c1c4b storage.js --- a/storage.js Mon Mar 21 15:40:32 2011 +0100 +++ b/storage.js Mon Mar 21 16:30:14 2011 +0100 @@ -395,7 +395,7 @@ for (var i in node.member) if(node.member[i] == jid) return node.member.splice(i, 1); - })() + })(); } storage.save();