# HG changeset patch # User Sonny Piers # Date 1300721414 -3600 # Node ID 296de54c1c4bc4a2743dea718be72567c638f664 # Parent 22b06eade9a70b83c10abc8f311b1a2bbda6489d Rollback last commit error and fix typo error. diff --git a/configuration.js b/configuration.js --- a/configuration.js +++ b/configuration.js @@ -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 --git a/modules/mod_disco.js b/modules/mod_disco.js --- a/modules/mod_disco.js +++ b/modules/mod_disco.js @@ -112,8 +112,6 @@ exports.disco_items = { 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 --git a/storage.js b/storage.js --- a/storage.js +++ b/storage.js @@ -395,7 +395,7 @@ storage.setAffiliation = function(nodeID for (var i in node.member) if(node.member[i] == jid) return node.member.splice(i, 1); - })() + })(); } storage.save();