Send plugin data to client

pull/528/head
Egil Moeller 2012-02-29 16:05:44 +01:00
parent c9797a3714
commit 35626df77b
1 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,7 @@ var authorManager = require("../db/AuthorManager");
var readOnlyManager = require("../db/ReadOnlyManager");
var settings = require('../utils/Settings');
var securityManager = require("../db/SecurityManager");
var plugins = require("../pluginfw/plugins.js");
var log4js = require('log4js');
var messageLogger = log4js.getLogger("message");
@ -800,7 +801,10 @@ function handleClientReady(client, message)
"hideSidebar": false
},
"abiwordAvailable": settings.abiwordAvailable(),
"hooks": {}
"plugins": {
"plugins": plugins.plugins,
"parts": plugins.parts,
}
}
//Add a username to the clientVars if one avaiable