changeset 52:296de54c1c4b

Rollback last commit error and fix typo error.
author Sonny Piers <sonny.piers@gmail.com>
date Mon, 21 Mar 2011 16:30:14 +0100
parents 22b06eade9a7
children ca17b63f561f
files configuration.js modules/mod_disco.js storage.js
diffstat 3 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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';
--- 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);
--- 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();